1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-04-30 22:29:01 +08:00

U:增加必要的校验提示

This commit is contained in:
hanfengcan 2024-03-10 18:21:04 +08:00 committed by GitHub
parent 886ef9e11c
commit f5a26c32e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,21 @@
</template>
<n-input v-model:value="modalForm.code" />
</n-form-item-gi>
<n-form-item-gi :span="12" path="path">
<n-form-item-gi
:span="12"
path="path"
:rule="{
trigger: ['blur', 'change'],
type: 'string',
message: '必须是/、http、https开头',
validator(rule, value) {
if (value) {
return /\/|http|https/.test(value)
}
return true
},
}"
>
<template #label>
<QuestionLabel label="路由地址" content="父级菜单可不填" />
</template>