This commit is contained in:
2025-07-21 22:00:05 +08:00
parent ccb59b3beb
commit 497a6200aa
3 changed files with 0 additions and 3 deletions

View File

@@ -34,7 +34,6 @@ export const useAdminStore = defineStore('admin', () => {
} catch (error) {
// token失效清除本地存储
logout()
console.error('Admin token is invalid, logging out')
}
}
}

View File

@@ -27,7 +27,6 @@ export const useAuthStore = defineStore('auth', () => {
} catch (error) {
// token失效清除本地存储
logout()
console.error('Token is invalid, logging out')
}
}
}

View File

@@ -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)
}