修复BUG,1.当用户设置吉祥物页面强制退出,也能重新回到吉祥物设置也。2.改AI问答页为起始页,详细优化了从登录页到AI问答页的逻辑,详细的优化了从首页到AI问答页的逻辑。3。改了wensocket的全局弹出框跳转到登录页的逻辑
This commit is contained in:
+3
-3
@@ -69,13 +69,13 @@ export default class WebSocketUtil {
|
||||
clearInterval(this.reconnectTimer);
|
||||
this.reconnectTimer = null
|
||||
this.close()
|
||||
goto_login_fun();
|
||||
goto_login_fun('socket');
|
||||
return
|
||||
}
|
||||
}else{
|
||||
clearInterval(this.reconnectTimer); // 清除重连计时器
|
||||
this.reconnectTimer = null
|
||||
goto_login_fun();
|
||||
goto_login_fun('socket');
|
||||
return
|
||||
}
|
||||
this.triggerEvent('message', res); // 触发消息接收事件
|
||||
@@ -224,7 +224,7 @@ export default class WebSocketUtil {
|
||||
this.triggerEvent('error', new Error('达到最大重连次数'));
|
||||
this.reconnectTimer = null
|
||||
this.close()
|
||||
goto_login_fun()
|
||||
goto_login_fun('socket')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user