fix: 按钮不应显示路由地址

This commit is contained in:
dap 2024-10-08 10:35:37 +08:00
parent 1e99a1cd52
commit 2a2d90baf7

View File

@ -223,8 +223,8 @@ export const drawerSchema: FormSchemaGetter = () => [
.regex(/^https?:\/\//, { message: '请输入正确的链接地址' });
},
// 类型不为按钮时显示
show: (values) => values.menuType !== 'F',
triggerFields: ['isFrame'],
show: (values) => values?.menuType !== 'F',
triggerFields: ['isFrame', 'menuType'],
},
fieldName: 'path',
help: `路由地址不带/, 如: menu, user 链接为http(s)://开头 链接默认使用内部iframe打开, 可通过{是否外链}控制打开方式`,