|
@@ -13,7 +13,8 @@ const useSidebarStore = defineStore(
|
|
|
state: () => ({
|
|
|
badgeObj: {
|
|
|
xxtzGqxxtzNum: '0' // 消息通知-股权消息通知
|
|
|
- }
|
|
|
+ },
|
|
|
+ ws: null
|
|
|
}),
|
|
|
|
|
|
|
|
@@ -25,6 +26,10 @@ const useSidebarStore = defineStore(
|
|
|
// this.badgeObj.xxtzGqxxtzNum = res.data;
|
|
|
// }
|
|
|
// })
|
|
|
+
|
|
|
+ if (this.ws) {
|
|
|
+ this.ws.close();
|
|
|
+ }
|
|
|
|
|
|
const userStore = useUserStore()
|
|
|
|