v1.2.0需求开发中

This commit is contained in:
2025-07-18 16:22:28 +08:00
parent a0ebd8254a
commit 9fa026f267
75 changed files with 10703 additions and 1197 deletions

View File

@@ -381,6 +381,8 @@ export default {
console.log("token变化打印",val);
if (!val) {
// 通知所有窗口断开连接
localStorage.setItem('cs_disconnect_all', Date.now().toString());
this.forceDisconnectAll()
this.$nextTick(() => {
this.determineUserType()
@@ -1252,6 +1254,7 @@ export default {
return;
}
// === 游客且客服离线时提示 ===
console.log("客服状态",this.customerIsOnline,`用户身份`,this.userType,`用户邮箱`,this.userEmail);
if (this.userType === 0 && this.customerIsOnline === false) {
this.$message({
message:
@@ -2020,6 +2023,8 @@ export default {
// isWebSocketConnected: this.isWebSocketConnected,
// });
this.fetchUserid({ email: this.userEmail })
console.log("请求客服状态",this.userEmail);
const wasOpen = this.isChatOpen;
this.isChatOpen = !this.isChatOpen;