修改info 获取权限及菜单

This commit is contained in:
xie7654
2025-07-01 16:34:18 +08:00
parent 36b6a8437b
commit 7273ee275b
7 changed files with 35 additions and 10 deletions

View File

@@ -56,7 +56,11 @@ const schema: VbenFormSchema[] = [
.max(30, $t('ui.formRules.maxLength', [$t('system.menu.menuName'), 30]))
.refine(
async (value: string) => {
return !(await isMenuSearchExists(value, formData.value?.id));
return !(await isMenuSearchExists(
value,
formData.value?.id,
formData.value?.pid,
));
},
(value) => ({
message: $t('ui.formRules.alreadyExists', [
@@ -252,7 +256,7 @@ const schema: VbenFormSchema[] = [
triggerFields: ['type'],
},
fieldName: 'auth_code',
label: $t('system.menu.authCode'),
label: $t('system.menu.auth_code'),
},
{
component: 'InputNumber',