Explorar el Código

代码被冲了,恢复

liling hace 1 año
padre
commit
002fa9ac32
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 0
      src/layout/indexCommon.vue
  2. 1 1
      src/store/modules/websocket.js

+ 1 - 0
src/layout/indexCommon.vue

@@ -213,6 +213,7 @@ const wangzhi = import.meta.env.VITE_APP_BASE_API;
 const isAlive = ref(true);
 const toFileData = ref();
 const uid = useUserStore().uid;
+let hasNewMessage=ref(false)
 const iFrameData = ref([
   {
     id: 1,

+ 1 - 1
src/store/modules/websocket.js

@@ -4,7 +4,7 @@ import { ElMessage } from "element-plus";
 import {
   msgSend
 } from "@/api/chat/msg";
-const heartTimer = null
+let heartTimer = null
 const useWebsoctStore = defineStore('websoct', {
   state: () => ({
     messages: [],