fixed bug for: websocket is not auto connected when user not login

This commit is contained in:
RockYang
2024-10-02 07:26:34 +08:00
parent 2a6dd636fa
commit 88e7c39066
9 changed files with 22 additions and 7 deletions

View File

@@ -224,6 +224,7 @@ const logout = function () {
httpGet('/api/user/logout').then(() => {
removeUserToken()
store.setShowLoginDialog(true)
store.setIsLogin(false)
loginUser.value = {}
// 刷新组件
routerViewKey.value += 1