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:
parent
886ef9e11c
commit
f5a26c32e9
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user