Commit 3918080f by 匡雅琴

页面跳转方法调整

1 parent f10d9758
...@@ -10,8 +10,10 @@ ...@@ -10,8 +10,10 @@
class="logo" class="logo"
/> />
<div class="wrap-right"> <div class="wrap-right">
<div class="right-menu" @click="goConfigPage">公共配置</div> <div class="right-menu" @click="goConfigPage">
<div class="right-menu" @click="goEnvironmentPage">环境配置</div> {{ pageFlag == 0 ? "公共配置" : "环境配置" }}
</div>
<!-- <div class="right-menu" @click="goEnvironmentPage">环境配置</div> -->
<el-dropdown> <el-dropdown>
<span class="el-dropdown-link"> <span class="el-dropdown-link">
{{ userName }} {{ userName }}
...@@ -87,15 +89,21 @@ const account = () => { ...@@ -87,15 +89,21 @@ const account = () => {
}); });
}; };
// 跳往公共配置项页面 const pageFlag = ref(0);
const goConfigPage = () => {
router.replace({ name: "publickconfig" });
}
// 跳转环境配置 const goConfigPage = () => {
const goEnvironmentPage = () => { switch (pageFlag.value) {
router.replace({ name: "project" }); // 跳往公共配置项页面
} case 0:
pageFlag.value = 1;
router.replace({ name: "publickconfig" });
break;
// 跳转环境配置
case 1:
pageFlag.value = 0;
router.replace({ name: "project" });
}
};
// 注销账号 // 注销账号
const delUser = async () => { const delUser = async () => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!