fix: modify
parent
f1c7fde2a5
commit
e0480a5ce4
|
@ -17,7 +17,9 @@ export function removeToken() {
|
|||
}
|
||||
// 为什么这里使用 localStorage, 防止刷新后丢失
|
||||
export function getTrxToken() {
|
||||
return localStorage.getItem(trxTokenKey)
|
||||
const value = localStorage.getItem(trxTokenKey)
|
||||
if (value === 'undefined') return ''
|
||||
return value
|
||||
}
|
||||
|
||||
export function setTrxToken(token: string) {
|
||||
|
|
Loading…
Reference in New Issue