邓洁: 修改bug

This commit is contained in:
邓洁
2023-12-30 20:11:32 +08:00
parent 1dd856e2ca
commit 3150343a40
8 changed files with 100 additions and 49 deletions

View File

@@ -175,7 +175,6 @@ const getOtherInfo = () => {
getLargeScreenInfo().then((res) => {
if (res?.code === 1000) {
let routeArr = [];
console.log(res.data.routeList, "res.data.routeList")
res.data.routeList.forEach((item, index) => {
for (let btn of btnList.value) {
if (item === btn.route) {
@@ -186,9 +185,9 @@ const getOtherInfo = () => {
routeList.value = routeArr
showMenu.value = true
siteList.value = res.data.siteOption
currentSiteId.value = res.data.siteOption[res.data.siteOption.length - 1].value
currentSite.value = res.data.siteOption[res.data.siteOption.length - 1].label
getTunnel(res.data.siteOption[res.data.siteOption.length - 1].value)
currentSiteId.value = res.data.siteOption[0].value
currentSite.value = res.data.siteOption[0].label
getTunnel(res.data.siteOption[0].value)
}
});
};