1
This commit is contained in:
@@ -128,10 +128,9 @@ async function handleLoginSuccess(data: { token: string; permissions?: string })
|
||||
}
|
||||
async function logout() {
|
||||
try {
|
||||
// 删除后端token缓存 - 复刻HTML版本逻辑
|
||||
await fetch('/api/cache/delete?key=token', { method: 'POST' })
|
||||
} catch (e) {
|
||||
console.warn('删除后端token缓存失败:', e)
|
||||
console.log('删除后端token缓存失败:', e)
|
||||
}
|
||||
|
||||
// 清理前端状态
|
||||
|
||||
Reference in New Issue
Block a user