fix: modify

develop
时启龙 2024-08-30 12:02:16 +08:00
parent f1c7fde2a5
commit e0480a5ce4
1 changed files with 3 additions and 1 deletions

View File

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