旧版测评管理增加token免登

This commit is contained in:
cai.pingxiang
2025-12-07 18:47:12 +08:00
parent 3cf5078d0d
commit 68435d2be3

View File

@@ -444,7 +444,7 @@
circleActive: selectedKeys[0] === 'sub22-2' ? true : false, circleActive: selectedKeys[0] === 'sub22-2' ? true : false,
circle: selectedKeys[0] === 'sub22-2' ? false : true, circle: selectedKeys[0] === 'sub22-2' ? false : true,
}"></span> }"></span>
<a target="_blank" :href="evaluationManagement">测评管理</a> <a target="_blank" :href="`${evaluationManagement}?token=${getOrgToken()}`">测评管理</a>
</a-menu-item> </a-menu-item>
</a-sub-menu> </a-sub-menu>
<a-menu-item key="sub15" @titleClick="titleClick" v-if="checkMenu('download')"> <a-menu-item key="sub15" @titleClick="titleClick" v-if="checkMenu('download')">
@@ -588,7 +588,7 @@
<div class="imgBox"> <div class="imgBox">
<img style="width: 22px; height: 22px" src="../assets/images/navleft/review.png" /> <img style="width: 22px; height: 22px" src="../assets/images/navleft/review.png" />
</div> </div>
<a target="_blank" :href="oldManage">旧版管理员界面</a> <a target="_blank" :href="`${oldManage}?token=${getOrgToken()}`">旧版管理员界面</a>
</a-menu-item> </a-menu-item>
<!-- <router-link target="_blank" to="/oldsystemmanage">旧版管理员界面</router-link> --> <!-- <router-link target="_blank" to="/oldsystemmanage">旧版管理员界面</router-link> -->
@@ -1148,9 +1148,9 @@ export default {
pagename: "受众管理", pagename: "受众管理",
}, },
], ],
oldManage: window.location.protocol + process.env.VUE_APP_OLD_MANAGE + '?token=' + getOrgToken(), oldManage: window.location.protocol + process.env.VUE_APP_OLD_MANAGE,
evaluationManagement: evaluationManagement:
window.location.protocol + process.env.VUE_APP_EVA_MANAGE + '?token=' + getOrgToken(), window.location.protocol + process.env.VUE_APP_EVA_MANAGE,
}); });
const onOpenChange = (openKeys) => { const onOpenChange = (openKeys) => {
@@ -1262,10 +1262,10 @@ export default {
return state.lecturerRoute[lecturerRoute(state.lecturerAdmin)]; return state.lecturerRoute[lecturerRoute(state.lecturerAdmin)];
}; };
const getClientHeight = () => { const getClientHeight = () => {
console.log('evaluationManagement');
state.screenHeight = document.body.clientHeight; state.screenHeight = document.body.clientHeight;
}; };
onMounted(() => { onMounted(() => {
console.log('evaluationManagement:')
// console.log("11111", 1); // console.log("11111", 1);
window.addEventListener("resize", getClientHeight, false); window.addEventListener("resize", getClientHeight, false);
// judgeUrl(); // judgeUrl();