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

@@ -323,6 +323,7 @@ const pay = (product,payWay) => {
const logout = function () {
httpGet('/api/user/logout').then(() => {
removeUserToken();
store.setIsLogin(false)
router.push('/');
}).catch(() => {
showFailToast('注销失败!');