lcw
This commit is contained in:
@ -156,8 +156,9 @@ onMounted(() => {
|
||||
|
||||
// 按钮切换
|
||||
const handleBtns = (val) => {
|
||||
btnsActive.value = val;
|
||||
console.log(val);
|
||||
|
||||
btnsActive.value = val;
|
||||
switch (val) {
|
||||
case "智能布控":
|
||||
router.push("/DeploymentArea");
|
||||
@ -177,12 +178,7 @@ const handleBtns = (val) => {
|
||||
// window.open(NPShref.href, "_blank");
|
||||
break;
|
||||
case "退出登录":
|
||||
window.opener = null;
|
||||
window.open('', '_self');
|
||||
window.close();
|
||||
store.commit("app/clearTag", null, { immediate: true });
|
||||
store.commit("permission/deleteRouter", { immediate: true });
|
||||
store.commit("user/deleteKeepLiiveRoute", "home");
|
||||
store.dispatch("user/logout");
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user