Skip to content

Commit

Permalink
test auto refresh user info
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami authored Jun 2, 2024
1 parent edfbce7 commit 18e8db7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,14 @@ setInterval(() => {
)
rs.then((res) => {
if (res.status === 0) {
localStorage.setItem('proxies', res.proxies_num)
localStorage.setItem('traffic', res.traffic)
localStorage.setItem('set_limit', res)
store.set_user_info(res);
// localStorage.setItem('proxies', res.proxies_num)
// localStorage.setItem('traffic', res.traffic)
// localStorage.setItem('set_limit', res)
// store.set_limit({
// inbound: res.inbound,
// outbound: res.outbound,
// })
}
if (res.status === -3) {
sendWarningMessage('登录过期或未登录,请重新登录后台!')
Expand Down

0 comments on commit 18e8db7

Please sign in to comment.