| | |
| | | <img class="user-header" :src="userImg" :onerror="errorImg" /> |
| | | </div> |
| | | <div class="user"> |
| | | <span>{{ userName }}</span> |
| | | <span>{{ userTrueName }}</span> |
| | | <span id="index-date"></span> |
| | | </div> |
| | | <div class="settings"> |
| | |
| | | watch, |
| | | onMounted, |
| | | getCurrentInstance, |
| | | h |
| | | h, |
| | | } from "vue"; |
| | | import { useRouter, useRoute } from "vue-router"; |
| | | import store from "../store/index"; |
| | |
| | | //2022.05.29å¢å tabé项ä¸èåèå¨åè½ |
| | | const currentMenuId = ref(0); |
| | | const userName = ref("--"); |
| | | const userTrueName = ref("--"); |
| | | const userInfo = ref({}); |
| | | const visibleItem = reactive({ |
| | | left: false, |
| | |
| | | ElNotification({ |
| | | title: data.title, |
| | | message: h("i", { style: "color: teal" }, data.message), |
| | | position: "bottom-right", |
| | | }); |
| | | }; |
| | | |
| | |
| | | setTimeout(createSocket, 10000); |
| | | }; |
| | | |
| | | client.onerror = function () { |
| | | |
| | | }; |
| | | client.onerror = function () {}; |
| | | }; |
| | | |
| | | const changeTheme = (name) => { |
| | |
| | | let _userInfo = store.getters.getUserInfo(); |
| | | if (_userInfo) { |
| | | userName.value = _userInfo.userName; |
| | | userTrueName.value = _userInfo.userTrueName; |
| | | 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 }); |
| | | |
| | |
| | | errorImg, |
| | | userInfo, |
| | | userName, |
| | | userTrueName, |
| | | userImg, |
| | | selectId, |
| | | selectMenuIndex, |