邓洁 : 页面调整

This commit is contained in:
邓洁
2023-12-17 21:25:17 +08:00
parent a472bfe1d4
commit 0d53e11ceb
6 changed files with 48 additions and 17 deletions

View File

@@ -67,7 +67,7 @@ import { getToken } from "@/utils/auth";
import { useAuthStore } from "@/store/userstore.js";
import { getLargeScreen, getLargeScreenInfo } from "@/api/largeScreen";
import { ElMessageBox } from "element-plus";
import {getUserInfo} from "@/api/login";
const authStore = useAuthStore();
const router = useRouter();
const selectIndex = ref(-1);
@@ -75,7 +75,7 @@ const showFan = ref(false);
const drawerLeft = ref(true);
const drawerRight = ref(true);
const currentSite = ref("松江站");
const currentUser = ref("admin");
const currentUser = ref("");
const currentDate = ref(dateFormat());
const tunnelBtn = ref();
const tunnelList = ref([]);
@@ -97,10 +97,16 @@ onMounted(() => {
nextTick(() => {
showFan.value = true;
});
getUser()
getOtherInfo()
getScreenInfo();
});
const getUser=()=>{
getUserInfo().then(res=>{
currentUser.value=res.data.user.userName
})
}
const getOtherInfo = async () => {
await getLargeScreenInfo().then((res) => {
if (res?.code === 1000) {