Skip to content

Commit

Permalink
fix(minor): fixed navbar bugs (#672)
Browse files Browse the repository at this point in the history
* fix: fixed navbar bugs

* chore: changeset
  • Loading branch information
q1zhen authored Dec 31, 2024
1 parent f8cdcf3 commit 5e72e0f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-clocks-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"enspire": patch
---

Navbar bugfix
10 changes: 9 additions & 1 deletion app/components/custom/sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ const sidebarData = ref({
? [
{
title: '社团文件',
url: '/forms/files',
url: '#',
icon: 'lucide:file-text',
isActive: true,
items: [
{
title: '社团文件',
url: '/forms/files',
},
],
},
{
title: '活动记录',
Expand Down
7 changes: 0 additions & 7 deletions app/pages/forms/files.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
})
Expand Down

0 comments on commit 5e72e0f

Please sign in to comment.