mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
-- 项目名称校验
This commit is contained in:
@@ -20,6 +20,9 @@ const props = defineProps({
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
id: {
|
||||
type: String,
|
||||
},
|
||||
type: {
|
||||
type: Number,
|
||||
default: 1
|
||||
@@ -49,8 +52,7 @@ watch(modelV, () => {
|
||||
})
|
||||
|
||||
function validateProName() {
|
||||
console.log(props.value)
|
||||
props.value && validateName({name: props.value, type: props.type}).then(res => {
|
||||
props.value && validateName({name: props.value, type: props.type, id: props.id}).then(res => {
|
||||
emit('update:validate', res.data.data !== 1)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user