Sfoglia il codice sorgente

学生信息管理。 type:'0'是求职者,'1'是学生

lifanagju_citu 4 mesi fa
parent
commit
11607567d9

+ 0 - 3
components.d.ts

@@ -74,7 +74,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']
-  }
 }

+ 1 - 1
src/utils/check.js

@@ -2,7 +2,7 @@
 export const checkPersonBaseInfo = (baseInfo) => {
   const info = baseInfo ? baseInfo : localStorage.getItem('baseInfo') ? JSON.parse(localStorage.getItem('baseInfo')) : {}
   if (!info || !Object.keys(info).length) return false
-  if (info.type && Number(info.type) === 1) return true // 0是求职者,1是学生
+  if (info.type === '1') return true // 学生信息管理。 type:'0'是求职者,'1'是学生
   const keyArr = [ // 必填项目
     'name',
     'sex',

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

@@ -57,7 +57,7 @@ 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是学生
+  studentInformation: (info?.type !== '1') // 学生信息管理。 type:'0'是求职者,'1'是学生
 }
 
 // 左侧菜单列表