mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-14 05:03:45 +08:00
fixed bug for: websocket is not auto connected when user not login
This commit is contained in:
@@ -323,6 +323,7 @@ const pay = (product,payWay) => {
|
||||
const logout = function () {
|
||||
httpGet('/api/user/logout').then(() => {
|
||||
removeUserToken();
|
||||
store.setIsLogin(false)
|
||||
router.push('/');
|
||||
}).catch(() => {
|
||||
showFailToast('注销失败!');
|
||||
|
||||
Reference in New Issue
Block a user