|
@@ -62,8 +62,8 @@ const userStore = useUserStore()
|
|
|
|
|
|
const info = localStorage.getItem('baseInfo') ? JSON.parse(localStorage.getItem('baseInfo')) : {}
|
|
|
|
|
|
-const menuHide = { // 是否隐藏
|
|
|
- studentInformation: (info?.type && Number(info.type) !== 1) // 学生信息管理。 type:0是求职者,1是学生
|
|
|
+const menuDelete = { // 是否隐藏
|
|
|
+ studentInformation: !(info?.type && Number(info.type) === 1) // 学生信息管理。 type:0是求职者,1是学生
|
|
|
}
|
|
|
|
|
|
// 左侧菜单列表
|
|
@@ -76,7 +76,7 @@ console.log(import.meta.env.VITE_NODE_ENV, '当前环境变量===========')
|
|
|
const getList = (arr, obj = []) => {
|
|
|
arr.forEach(element => {
|
|
|
if (element.show) return
|
|
|
- if (menuHide[element.permissionName]) return
|
|
|
+ if (menuDelete[element.permissionName]) return
|
|
|
let data = {}
|
|
|
data = {
|
|
|
title: element?.meta?.title,
|