更新
This commit is contained in:
@ -29,14 +29,14 @@
|
|||||||
<div class="name">姓名:{{ username }}</div>
|
<div class="name">姓名:{{ username }}</div>
|
||||||
<div class="work">单位:{{ deptName }}</div>
|
<div class="work">单位:{{ deptName }}</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <el-dropdown :hide-on-click="false">
|
<el-dropdown :hide-on-click="false">
|
||||||
<span class="el-dropdown-link"></span>
|
<span class="el-dropdown-link"></span>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu class="loginOut" @click="logout">
|
<el-dropdown-menu class="loginOut" @click="logout">
|
||||||
<el-dropdown-item command="logout">退出登录</el-dropdown-item>
|
<el-dropdown-item command="logout">退出登录</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown> -->
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
@ -66,10 +66,12 @@ onMounted(() => {
|
|||||||
activeMeun.value = window.localStorage.getItem("activeId");
|
activeMeun.value = window.localStorage.getItem("activeId");
|
||||||
});
|
});
|
||||||
const logout = () => {
|
const logout = () => {
|
||||||
store.dispatch("user/logout");
|
window.opener = null;
|
||||||
|
window.open('', '_self');
|
||||||
|
window.close();
|
||||||
store.commit("app/clearTag", null, { immediate: true });
|
store.commit("app/clearTag", null, { immediate: true });
|
||||||
store.commit("permission/deleteRouter", { immediate: true });
|
store.commit("permission/deleteRouter", { immediate: true });
|
||||||
store.commit("user/deleteKeepLiiveRoute", "lz/home");
|
store.commit("user/deleteKeepLiiveRoute", "home");
|
||||||
};
|
};
|
||||||
// 菜单切换
|
// 菜单切换
|
||||||
const handleMeun = (item, idx) => {
|
const handleMeun = (item, idx) => {
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
<div class="text">
|
<div class="text">
|
||||||
<div style="color: #3877f2">
|
<div style="color: #3877f2">
|
||||||
{{ username }}
|
{{ username }}
|
||||||
<!-- <el-dropdown :hide-on-click="false">
|
<el-dropdown :hide-on-click="false">
|
||||||
<el-icon style="top: 2px" :size="18" color="#3877f2">
|
<el-icon style="top: 2px" :size="18" color="#3877f2">
|
||||||
<ArrowRight />
|
<ArrowRight />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
@ -70,7 +70,7 @@
|
|||||||
>
|
>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown> -->
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
<div class="dept f12">
|
<div class="dept f12">
|
||||||
<el-tooltip :content="deptName">{{ deptName }}</el-tooltip>
|
<el-tooltip :content="deptName">{{ deptName }}</el-tooltip>
|
||||||
@ -190,10 +190,12 @@ function modularShowFn(val) {
|
|||||||
|
|
||||||
// 退出
|
// 退出
|
||||||
const logout = () => {
|
const logout = () => {
|
||||||
store.dispatch("user/logout");
|
window.opener = null;
|
||||||
|
window.open('', '_self');
|
||||||
|
window.close();
|
||||||
store.commit("app/clearTag", null, { immediate: true });
|
store.commit("app/clearTag", null, { immediate: true });
|
||||||
store.commit("permission/deleteRouter", { immediate: true });
|
store.commit("permission/deleteRouter", { immediate: true });
|
||||||
store.commit("user/deleteKeepLiiveRoute", "lz/home");
|
store.commit("user/deleteKeepLiiveRoute", "home");
|
||||||
};
|
};
|
||||||
|
|
||||||
// 路由跳转
|
// 路由跳转
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
<div class="text">
|
<div class="text">
|
||||||
<div style="color: #3877f2">
|
<div style="color: #3877f2">
|
||||||
{{ username }}
|
{{ username }}
|
||||||
<!-- <el-dropdown :hide-on-click="false">
|
<el-dropdown :hide-on-click="false">
|
||||||
<el-icon style="top: 2px" :size="18" color="#3877f2">
|
<el-icon style="top: 2px" :size="18" color="#3877f2">
|
||||||
<ArrowRight />
|
<ArrowRight />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
@ -70,7 +70,7 @@
|
|||||||
>
|
>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown> -->
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
<div class="dept f12">
|
<div class="dept f12">
|
||||||
<el-tooltip :content="deptName">{{ deptName }}</el-tooltip>
|
<el-tooltip :content="deptName">{{ deptName }}</el-tooltip>
|
||||||
@ -187,10 +187,12 @@ function modularShowFn(val) {
|
|||||||
|
|
||||||
// 退出
|
// 退出
|
||||||
const logout = () => {
|
const logout = () => {
|
||||||
store.dispatch("user/logout");
|
window.opener = null;
|
||||||
|
window.open('', '_self');
|
||||||
|
window.close();
|
||||||
store.commit("app/clearTag", null, { immediate: true });
|
store.commit("app/clearTag", null, { immediate: true });
|
||||||
store.commit("permission/deleteRouter", { immediate: true });
|
store.commit("permission/deleteRouter", { immediate: true });
|
||||||
store.commit("user/deleteKeepLiiveRoute", "lz/home");
|
store.commit("user/deleteKeepLiiveRoute", "home");
|
||||||
};
|
};
|
||||||
|
|
||||||
// 路由跳转
|
// 路由跳转
|
||||||
|
Reference in New Issue
Block a user