This commit is contained in:
sophie committed 2026-05-21 19:05:05 +08:00
1 parent c0cb55dce6
commit 211763908a
4 files changed
+666 -271

No files matched your search

+8 -8
View File
@@ -1578,6 +1578,14 @@ onMounted(async () => {
<User class="h-4 w-4" />
<span>个人中心</span>
</button>
<button
v-if="currentUser?.role === 'admin'"
@click="openAdminPanel"
class="flex w-full items-center gap-3 rounded-2xl px-4 py-3 text-left text-[15px] font-medium text-slate-600 transition-all hover:bg-slate-50 hover:text-slate-900"
>
<Settings class="h-4 w-4" />
<span>管理后台</span>
</button>
<button
@click="navigateToApplications"
class="flex w-full items-center gap-3 rounded-2xl px-4 py-3 text-left text-[15px] font-medium transition-all"
@@ -1630,14 +1638,6 @@ onMounted(async () => {
<Bot class="h-4 w-4" />
<span>返回聊天</span>
</button>
<button
v-if="currentUser?.role === 'admin'"
@click="openAdminPanel"
class="flex w-full items-center gap-3 rounded-2xl px-4 py-3 text-left text-[15px] font-medium text-slate-600 transition-all hover:bg-slate-50 hover:text-slate-900"
>
<Settings class="h-4 w-4" />
<span>管理后台</span>
</button>
<button
@click="handleLogout"
class="flex w-full items-center gap-3 rounded-2xl px-4 py-3 text-left text-[15px] font-medium text-red-500 transition-all hover:bg-red-50 hover:text-red-600"