邓洁 : 修复bug

This commit is contained in:
dengj
2023-12-29 16:03:02 +08:00
parent b185a2a651
commit 101f200a96
4 changed files with 25 additions and 21 deletions

View File

@@ -180,12 +180,18 @@ const changeTunnel = (e) => {
}
const manageSelect = (index) => {
console.log("首页点击-", index);
if (index === 0) {
router.push("/site"+'/'+currentUserId.value);
} else if (index === 1) {
router.push("/tunnel/" + currentSiteId.value+'/i'+'/'+currentUserId.value);
} else if (index === 2) {
router.push("/user/" + currentSiteId.value);
if (index === '站点管理') {
if(currentUserId.value){
router.push("/site"+'/'+currentUserId.value);
}
} else if (index === '隧道管理') {
if(currentSiteId.value&&currentUserId.value){
router.push("/tunnel/" + currentSiteId.value+'/i'+'/'+currentUserId.value);
}
} else if (index === '用户管理') {
if(currentSiteId.value){
router.push("/user/" + currentSiteId.value);
}
}
};
const handleChangeSite = (item) => {