wangxinhui
2025-01-10 741cc4cde8bc475366891e795988a11153eae07c
代码管理/WMS/WIDESEA_WMSClient/src/views/Index.vue
@@ -214,7 +214,7 @@
  watch,
  onMounted,
  getCurrentInstance,
  h
  h,
} from "vue";
import { useRouter, useRoute } from "vue-router";
import store from "../store/index";
@@ -319,6 +319,7 @@
      ElNotification({
        title: data.title,
        message: h("i", { style: "color: teal" }, data.message),
        position: "bottom-right",
      });
    };
@@ -338,9 +339,7 @@
        setTimeout(createSocket, 10000);
      };
      client.onerror = function () {
      };
      client.onerror = function () {};
    };
    const changeTheme = (name) => {
@@ -599,13 +598,14 @@
      let _userInfo = store.getters.getUserInfo();
      if (_userInfo) {
        userName.value = _userInfo.userName;
        console.log(_userInfo);
        userName.value = _userInfo.trueNmae;
        if (_userInfo.img) {
          userImg.value = _config.base.getImgSrc(_userInfo.img, http.ipAddress);
        }
      }
      createSocket("ws://127.0.0.1:9295/" + _userInfo.userName);
      createSocket("ws://127.0.0.1:9296/" + _userInfo.userName);
      Object.assign(_config.$tabs, { open: open, close: close });