From 772286fb73645584ed4f3ff3679d5d2167020d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E4=BC=AF=E8=A8=80?= Date: Mon, 20 Jul 2026 00:46:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=AF=E7=94=B1=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E4=B8=8D=E5=BC=BA=E5=88=B6=E4=BB=A5=E6=96=9C=E6=9D=A0=E5=BC=80?= =?UTF-8?q?=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 兼容新dashboard路由配置 --- playground/src/views/system/menu/modules/form.vue | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/playground/src/views/system/menu/modules/form.vue b/playground/src/views/system/menu/modules/form.vue index 44fa1539..7029db00 100644 --- a/playground/src/views/system/menu/modules/form.vue +++ b/playground/src/views/system/menu/modules/form.vue @@ -135,12 +135,6 @@ const schema: VbenFormSchema[] = [ .string() .min(2, $t('ui.formRules.minLength', [$t('system.menu.path'), 2])) .max(100, $t('ui.formRules.maxLength', [$t('system.menu.path'), 100])) - .refine( - (value: string) => { - return value.startsWith('/'); - }, - $t('ui.formRules.startWith', [$t('system.menu.path'), '/']), - ) .refine( async (value: string) => { return !(await isMenuPathExists(value, formData.value?.id)); @@ -168,12 +162,6 @@ const schema: VbenFormSchema[] = [ .string() .min(2, $t('ui.formRules.minLength', [$t('system.menu.path'), 2])) .max(100, $t('ui.formRules.maxLength', [$t('system.menu.path'), 100])) - .refine( - (value: string) => { - return value.startsWith('/'); - }, - $t('ui.formRules.startWith', [$t('system.menu.path'), '/']), - ) .refine(async (value: string) => { return await isMenuPathExists(value, formData.value?.id); }, $t('system.menu.activePathMustExist'))