mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-21 00:36:46 +08:00
课程名、项目名称修改提示重复
This commit is contained in:
@@ -64,8 +64,13 @@ watch(modelV, () => {
|
|||||||
function validateProName() {
|
function validateProName() {
|
||||||
emit('update:finished', false);
|
emit('update:finished', false);
|
||||||
props.value && validateName({name: props.value, type: props.type, id: props.id}).then(res => {
|
props.value && validateName({name: props.value, type: props.type, id: props.id}).then(res => {
|
||||||
|
if(props.value==""){
|
||||||
|
emit('update:validate', res.data.data === 1)
|
||||||
|
}else{
|
||||||
emit('update:validate', res.data.data !== 1)
|
emit('update:validate', res.data.data !== 1)
|
||||||
emit('update:finished', true);
|
emit('update:finished', true);
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user