Skip to content

Commit 5e72e0f

Browse files
authored
fix(minor): fixed navbar bugs (#672)
* fix: fixed navbar bugs * chore: changeset
1 parent f8cdcf3 commit 5e72e0f

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.changeset/wild-clocks-drive.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"enspire": patch
3+
---
4+
5+
Navbar bugfix

app/components/custom/sidebar.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,15 @@ const sidebarData = ref({
7373
? [
7474
{
7575
title: '社团文件',
76-
url: '/forms/files',
76+
url: '#',
77+
icon: 'lucide:file-text',
78+
isActive: true,
79+
items: [
80+
{
81+
title: '社团文件',
82+
url: '/forms/files',
83+
},
84+
],
7785
},
7886
{
7987
title: '活动记录',

app/pages/forms/files.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ import { v4 as uuidv4 } from 'uuid'
99
import { useForm } from 'vee-validate'
1010
import * as z from 'zod'
1111
12-
// ZOD!
13-
const formSchema = toTypedSchema(z.object({
14-
file: z
15-
.instanceof(FileList)
16-
.refine(file => file?.length === 1, 'File is required.'),
17-
}))
18-
1912
definePageMeta({
2013
middleware: ['auth'],
2114
})

0 commit comments

Comments
 (0)