fix:添加指挥部大屏需要免登录跳转的页面

This commit is contained in:
Vce 2024-07-02 00:11:35 +08:00
parent 2f15f42eeb
commit 208d436e7f
2 changed files with 42 additions and 1 deletions

View File

@ -1224,7 +1224,30 @@ export default {
if (!this.$store.state.userInfo.personMail && this.company == 'agjt' && isHaveUserCenterMenu) {
this.checkInfoComplete();
}
if(window.location.href.indexOf("command") != -1){
// split pathItem
var params = window.location.href.split('?')[1]; // ?
var keyValuePairs = params.split('&'); // &
var pathItem;
for (var i = 0; i < keyValuePairs.length; i++) {
var pair = keyValuePairs[i].split('=');
if (pair[0] === 'pathItem') {
pathItem = decodeURIComponent(pair[1]); //
break;
}
}
console.log("22222222222222222222222222222222222222222222222222")
console.log(window.location.href)
console.log(pathItem)
localStorage.setItem('lageToBackend',pathItem)
this.$router.push("projectIndex");
}else{
this.$router.push("/workSpace");
}
// this.$router.push("/workSpace");
} else {
this.$router.push("/supplierIndex");
}

View File

@ -344,6 +344,24 @@ export default {
console.log("all111", all);
// this.list = all;
this.list = all.filter(item => item.plugin != 'contractors');//
let pathItem = localStorage.getItem('lageToBackend')
if(pathItem.length > 0){
localStorage.removeItem('lageToBackend')
let path = pathItem
let moduleList = this.list;
moduleList.map((item) => {
item.menuList.map((item2) => {
if (item2.path == path) {
this.$store.commit("setMenuList", item.menuList);
}
});
});
this.$router.push(path);
}
}
});
} else {