Skip to content

Commit

Permalink
fix: 清空缓存的消息 (#68)
Browse files Browse the repository at this point in the history
Co-Authored-By: alipay404 <[email protected]>
  • Loading branch information
Evansy and alipay404 committed Jul 5, 2023
1 parent b08c1ac commit b22ad1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ class WS {
this.#tasks.forEach((task) => {
this.send(task)
})
// 清空缓存的消息
this.#tasks = []
} else {
// 如果没登录,而且已经请求了登录二维码,就要更新登录二维码。
loginStore.loginQrCode && loginStore.getLoginQrCode()
Expand Down

0 comments on commit b22ad1a

Please sign in to comment.