制造成本分析配合后端修改&添加顶部账号显示

This commit is contained in:
2026-04-20 13:02:19 +08:00
parent 8105e74122
commit 835d4efd5b
29 changed files with 258 additions and 111 deletions

View File

@@ -14,15 +14,16 @@
<i class="el-icon-caret-bottom" />
</div>
<el-dropdown-menu slot="dropdown">
<router-link to="/user/profile">
<!-- <router-link to="/user/profile">
<el-dropdown-item>个人中心</el-dropdown-item>
</router-link>
</router-link> -->
<!-- <el-dropdown-item @click.native="setting = true">
<span>布局设置</span>
</el-dropdown-item> -->
<el-dropdown-item divided @click.native="logout">
<el-dropdown-item @click.native="logout">
<span>退出登录</span>
</el-dropdown-item>
<el-dropdown-item divided @click.native='handleToggle'>切换账号</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
@@ -97,7 +98,12 @@ export default {
checkPermi(permissions) {
return this.$auth.hasPermi(permissions)
return true;
}
},
handleToggle() {
this.$store.dispatch('LogOut').then(() => {
location.href = getPath('/index');
})
},
}
}
</script>