This commit is contained in:
2025-07-28 10:07:58 +08:00
parent 1c253ccd4a
commit 2cc15562f5
3 changed files with 18 additions and 12 deletions

View File

@ -59,7 +59,7 @@
<div class="text">
<div style="color: #3877f2">
{{ username }}
<!-- <el-dropdown :hide-on-click="false">
<el-dropdown :hide-on-click="false">
<el-icon style="top: 2px" :size="18" color="#3877f2">
<ArrowRight />
</el-icon>
@ -70,7 +70,7 @@
>
</el-dropdown-menu>
</template>
</el-dropdown> -->
</el-dropdown>
</div>
<div class="dept f12">
<el-tooltip :content="deptName">{{ deptName }}</el-tooltip>
@ -187,10 +187,12 @@ function modularShowFn(val) {
// 退出
const logout = () => {
store.dispatch("user/logout");
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", "lz/home");
store.commit("user/deleteKeepLiiveRoute", "home");
};
// 路由跳转