修改页面log输出并修改tonken超时判断

This commit is contained in:
GGJ
2024-12-18 14:15:13 +08:00
parent 21831dda90
commit 8089fcb7de
43 changed files with 203 additions and 155 deletions

View File

@@ -92,7 +92,7 @@ export const useAdminInfo = defineStore('adminInfo', {
this.refresh_token = ''
},
setToken(token: string, type: 'auth' | 'refresh') {
const field = type == 'auth' ? 'token' : 'refresh_token'
const field = type == 'auth' ? 'access_token' : 'refresh_token'
this[field] = token
},
getToken(type: 'auth' | 'refresh' = 'auth') {