diff --git a/.changeset/wild-clocks-drive.md b/.changeset/wild-clocks-drive.md new file mode 100644 index 00000000..0c076bed --- /dev/null +++ b/.changeset/wild-clocks-drive.md @@ -0,0 +1,5 @@ +--- +"enspire": patch +--- + +Navbar bugfix diff --git a/app/components/custom/sidebar.vue b/app/components/custom/sidebar.vue index 66bea75b..72476670 100644 --- a/app/components/custom/sidebar.vue +++ b/app/components/custom/sidebar.vue @@ -73,7 +73,15 @@ const sidebarData = ref({ ? [ { title: '社团文件', - url: '/forms/files', + url: '#', + icon: 'lucide:file-text', + isActive: true, + items: [ + { + title: '社团文件', + url: '/forms/files', + }, + ], }, { title: '活动记录', diff --git a/app/pages/forms/files.vue b/app/pages/forms/files.vue index 4b5f3f8e..f590c1e3 100644 --- a/app/pages/forms/files.vue +++ b/app/pages/forms/files.vue @@ -9,13 +9,6 @@ import { v4 as uuidv4 } from 'uuid' import { useForm } from 'vee-validate' import * as z from 'zod' -// ZOD! -const formSchema = toTypedSchema(z.object({ - file: z - .instanceof(FileList) - .refine(file => file?.length === 1, 'File is required.'), -})) - definePageMeta({ middleware: ['auth'], })