修改token超时后判断
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user