添加考勤菜单
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
<el-dropdown placement="bottom">
|
||||
<div class="flx-center">
|
||||
<div class="avatar">
|
||||
<img :src="userInfo.avatar" alt="avatar" />
|
||||
<img :src="userInfo.avatar || ''" alt="avatar" />
|
||||
</div>
|
||||
<span class="username" :style="{ color: themeConfig.footColor }">{{
|
||||
userInfo.name
|
||||
userInfo.name || ''
|
||||
}}</span>
|
||||
</div>
|
||||
<template #dropdown>
|
||||
@@ -27,8 +27,8 @@ const handleClick = () => {
|
||||
// eslint-disable-next-line no-alert
|
||||
alert("button click");
|
||||
};
|
||||
const userInfo = ref(null);
|
||||
userInfo.value = JSON.parse(sessionStorage.getItem("userInfo"));
|
||||
const userInfo = ref({});
|
||||
userInfo.value = JSON.parse(sessionStorage.getItem("userInfo")) || {}
|
||||
|
||||
const gotoLogin = () => {
|
||||
sessionStorage.removeItem("token");
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// 菜单列表改了路由要记得改菜单相互匹配
|
||||
const menuTable = [
|
||||
{
|
||||
title: "首页",
|
||||
@@ -10,5 +9,10 @@ const menuTable = [
|
||||
url: "/groupManagement",
|
||||
icon: "Notebook",
|
||||
},
|
||||
{
|
||||
title: "综合部初审列表",
|
||||
url: "/performance/attendance/general",
|
||||
icon: "Notebook",
|
||||
},
|
||||
];
|
||||
export default menuTable;
|
||||
|
||||
Reference in New Issue
Block a user