fix: 修复token失效时更新token的bug
This commit is contained in:
parent
261abacc87
commit
0d1f0255c7
@ -80,11 +80,7 @@ const request = (config) => {
|
|||||||
if (code === 10003) {
|
if (code === 10003) {
|
||||||
removeStorage('starCloudToken')
|
removeStorage('starCloudToken')
|
||||||
removeStorage('starCloudUser')
|
removeStorage('starCloudUser')
|
||||||
const loginResult = await starCloud.login({
|
const loginResult = await starCloud.login(starCloud.accountInfo.uid, true)
|
||||||
username: starCloud.accountInfo.username,
|
|
||||||
password: starCloud.accountInfo.password,
|
|
||||||
uid: starCloud.accountInfo.uid
|
|
||||||
})
|
|
||||||
if (loginResult.code === Result.Success.code) {
|
if (loginResult.code === Result.Success.code) {
|
||||||
return resolve(await request(config))
|
return resolve(await request(config))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user