fix:调试后端菜单数据问题

This commit is contained in:
liangdong
2025-12-31 20:50:58 +08:00
parent f22b0dfcbc
commit bd2a143db8
3 changed files with 133 additions and 115 deletions

View File

@@ -3,7 +3,7 @@
<div class="user-header-container">
<div class="action-group">
<div class="action-item">
<el-icon :size="16"><Monitor /></el-icon>
<el-icon :size="16" @click="onStageManage"><Monitor /></el-icon>
</div>
<div class="action-item">
<el-badge is-dot class="notice-badge">
@@ -53,6 +53,8 @@ defineOptions({ name: "RightMenuGroup" });
const userStore = useUserStore();
const tokenManager = TokenManager.getInstance();
const router = useRouter();
const emits = defineEmits(["on-stage-manage"]);
const handleCommand = (command: string) => {
if (command === "logout") {
// 退出登录
@@ -61,6 +63,11 @@ const handleCommand = (command: string) => {
}
};
const onStageManage = () =>{
emits('on-stage-manage')
}
// 获取当前的用户的数据信息
const userInfo = computed(() => {
return userStore.userInfo;