fix bugs
This commit is contained in:
1 parent
c0cb55dce6
commit
211763908a
4 files changed
+666
-271
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user