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'))