소스 검색

不为学生时隐藏 menuDelete=true

lifanagju_citu 2 달 전
부모
커밋
beab066b77
2개의 변경된 파일4개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 5
      components.d.ts
  2. 3 3
      src/views/recruit/personal/PersonalCenter/index.vue

+ 1 - 5
components.d.ts

@@ -30,7 +30,6 @@ declare module 'vue' {
     CtTextField: typeof import('./src/components/CtVuetify/CtTextField/index.vue')['default']
     DatePicker: typeof import('./src/components/DatePicker/index.vue')['default']
     Echarts: typeof import('./src/components/Echarts/index.vue')['default']
-    ElCascader: typeof import('element-plus/es')['ElCascader']
     ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
     Empty: typeof import('./src/components/Empty/index.vue')['default']
     File: typeof import('./src/components/Upload/file.vue')['default']
@@ -44,7 +43,7 @@ declare module 'vue' {
     IndustryTypeCard: typeof import('./src/components/industryTypeCard/index.vue')['default']
     Info: typeof import('./src/components/Enterprise/info.vue')['default']
     InitPay: typeof import('./src/components/personalRecharge/initPay.vue')['default']
-    Item: typeof import('./src/components/PositionLongStrip/item.vue')['default']
+    Item: typeof import('./src/components/Position/item.vue')['default']
     JobTypeCard: typeof import('./src/components/jobTypeCard/index.vue')['default']
     ListGroup: typeof import('./src/components/FormUI/nestedListGroup/components/listGroup.vue')['default']
     Loading: typeof import('./src/components/Loading/index.vue')['default']
@@ -74,7 +73,4 @@ declare module 'vue' {
     VerifySlide: typeof import('./src/components/Verifition/Verify/VerifySlide.vue')['default']
     WangEditor: typeof import('./src/components/FormUI/wangEditor/index.vue')['default']
   }
-  export interface ComponentCustomProperties {
-    vLoading: typeof import('element-plus/es')['ElLoadingDirective']
-  }
 }

+ 3 - 3
src/views/recruit/personal/PersonalCenter/index.vue

@@ -60,8 +60,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是学生
 }
 
 // 左侧菜单列表
@@ -74,7 +74,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,