Skip to content

Commit 369fe19

Browse files
committed
feat: 修改顶部导航栏
1 parent ee57cb0 commit 369fe19

File tree

1 file changed

+13
-26
lines changed

1 file changed

+13
-26
lines changed

web/src/components/NavBar.vue

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -91,32 +91,6 @@
9191
/>
9292
</div>
9393

94-
<!-- 快捷操作 -->
95-
<div class="flex items-center gap-2">
96-
<RouterLink to="/files" class="btn btn-sm btn-primary gap-2 hidden lg:flex">
97-
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
98-
<path
99-
stroke-linecap="round"
100-
stroke-linejoin="round"
101-
stroke-width="2"
102-
d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"
103-
></path>
104-
</svg>
105-
上传文件
106-
</RouterLink>
107-
<RouterLink to="/notes" class="btn btn-sm btn-ghost gap-2 hidden lg:flex">
108-
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
109-
<path
110-
stroke-linecap="round"
111-
stroke-linejoin="round"
112-
stroke-width="2"
113-
d="M12 4v16m8-8H4"
114-
></path>
115-
</svg>
116-
新建笔记
117-
</RouterLink>
118-
</div>
119-
12094
<!-- 用户认证按钮 -->
12195
<div class="flex items-center gap-2">
12296
<template v-if="isLoggedIn">
@@ -207,6 +181,19 @@
207181
>
208182
📝 笔记管理
209183
</RouterLink>
184+
<RouterLink
185+
to="/recycle"
186+
class="flex items-center gap-3 px-4 py-3 rounded-lg text-sm font-medium transition-colors"
187+
:class="{
188+
'bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-300':
189+
$route.path === '/recycle',
190+
'text-gray-600 hover:text-gray-900 hover:bg-gray-100 dark:text-gray-300 dark:hover:text-gray-100 dark:hover:bg-gray-800':
191+
$route.path !== '/recycle',
192+
}"
193+
@click="showMobileMenu = false"
194+
>
195+
🗑️ 回收站
196+
</RouterLink>
210197

211198
<!-- 移动端搜索 -->
212199
<div class="px-4 pt-2">

0 commit comments

Comments
 (0)