Skip to content

Commit

Permalink
fix: 修复未登陆时不定时重置
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Nov 26, 2021
1 parent 1c9b8a2 commit 5d14023
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/background/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@ async function refreshStore() {
async function refreshLogin() {
const res = await api.loginRefresh();
if (res.code !== 200) {
await reset();
if (store.userId) {
await reset();
}
return;
}
if (store.userId === null) {
Expand Down

0 comments on commit 5d14023

Please sign in to comment.