diff --git a/frontend/src/stores/admin.ts b/frontend/src/stores/admin.ts index af89500..8ba6175 100644 --- a/frontend/src/stores/admin.ts +++ b/frontend/src/stores/admin.ts @@ -34,7 +34,6 @@ export const useAdminStore = defineStore('admin', () => { } catch (error) { // token失效,清除本地存储 logout() - console.error('Admin token is invalid, logging out') } } } diff --git a/frontend/src/stores/auth.ts b/frontend/src/stores/auth.ts index 67bdb91..0f31e5c 100644 --- a/frontend/src/stores/auth.ts +++ b/frontend/src/stores/auth.ts @@ -27,7 +27,6 @@ export const useAuthStore = defineStore('auth', () => { } catch (error) { // token失效,清除本地存储 logout() - console.error('Token is invalid, logging out') } } } diff --git a/frontend/src/utils/auth.ts b/frontend/src/utils/auth.ts index abdd8b6..b583c8f 100644 --- a/frontend/src/utils/auth.ts +++ b/frontend/src/utils/auth.ts @@ -71,7 +71,6 @@ export const adminAuth = { localStorage.setItem('adminToken', token) localStorage.setItem('adminUser', JSON.stringify(adminInfo)) - console.log('管理员登录状态设置成功:', { token, adminInfo }) } catch (error) { console.error('设置管理员登录状态失败:', error) }