feat: 优化主题切换逻辑,添加浅色主题支持,更新相关样式

This commit is contained in:
2025-12-21 04:41:44 +07:00
parent 101554ef5e
commit 7dfc125f66
3 changed files with 10 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ export const useUserStore = defineStore("user", () => {
userProfile: null,
});
const isAuthenticated = computed(() => token.value !== null);
const isAuthenticated = computed(() => !!token.value);
async function updateProfile() {
const { data } = await safeClient(client.api.user.profile.get(), { silent: true });