fix: 只有admin才可以看到并配置管理后台

This commit is contained in:
sophie committed 2026-05-14 09:38:35 +08:00
1 parent 2e9a70933d
commit 489c79758d
2 files changed
+13

No files matched your search

+1
View File
@@ -1407,6 +1407,7 @@ onMounted(async () => {
<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"
>