Xiao_123 преди 2 месеца
родител
ревизия
3e2c2f1298

+ 2 - 0
src/store/user.js

@@ -120,6 +120,8 @@ export const useUserStore = defineStore('user',
             // 刚注册时让用户选择学生用户还是求职者用户,角色不同填写的基本信息不同。
             localStorage.setItem('chooseRole', 'showChooseRole')
           }
+          // 当前角色若为学生则获取学生信息
+          if (data?.type && Number(data.type) === 1) this.getStudentInformation()
         } catch (error) {
           Snackbar.error(error)
         }

+ 0 - 3
src/views/recruit/enterprise/systemManagement/groupAccount/inviteConfirm.vue

@@ -77,8 +77,6 @@ const handleLogin = async () => {
     const setInfo = { email: joinPersonEmail, enterpriseId: enterpriseInfo.value.enterpriseName }
     // 如果用户登录后点击关闭填写简易人才信息,再次点击登录仅弹出填写,不再调用登录
     if (copyLoginData === (params.phone + params.code.toString()) && userId) {
-      // getUserBaseInfos(userId)
-      // return
       if (!checkPersonBaseInfo()) { // 强制填写个人信息
         dialogExtend('necessaryInfoDialog', { setInfo }).then(() => {
           join()
@@ -96,7 +94,6 @@ const handleLogin = async () => {
     const data = await useUserStore().handleSmsLogin(params)
     copyLoginData = params.phone + params.code.toString()
     userId = data.userId
-    // getUserBaseInfos(data.userId)
     if (!checkPersonBaseInfo()) { // 强制填写个人信息
       dialogExtend('necessaryInfoDialog', { setInfo }).then(() => {
         join()

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

@@ -60,9 +60,6 @@ const menuHide = { // 是否隐藏
   studentInformation: (info?.type && Number(info.type) !== 1) // 学生信息管理。 type:0是求职者,1是学生
 }
 
-// 是学生则获取详情
-if (info?.type && Number(info.type) === 1 && !localStorage.getItem('studentInfo')) userStore.getStudentInformation()
-
 // 左侧菜单列表
 const list = computed(() => {
   return getList(personCenterRoute[0].children[0].children)

+ 0 - 7
src/views/recruit/personal/PersonalCenter/resume/analysis/index.vue

@@ -170,7 +170,6 @@ const getValue = async () => {
       SnackText = SnackText ? SnackText : query.SnackText
     }
   }
-  // console.log('id:', id)
   if (id) {
     Snackbar.warning(SnackText || '请填写完整后提交!')
     return
@@ -194,11 +193,7 @@ const getValue = async () => {
         obj[newKey] = data[key]
       }
     })
-    // const defaultObj = { avatar: "", person: {}, advantage: { content: '' }, tag: { tagList: [] }, jobInterested: [], eduExp: [], workExp: [], trainExp: [] } // 必传字段
-    // const defaultObj = { avatar: null, person: null, advantage: null, tag: null, jobInterested: null, eduExp: null, workExp: null, trainExp: null } // 必传字段
-    // obj = { ...defaultObj, ...obj }
   }
-  // console.log('123456:', obj)
   return obj && Object.keys(obj).length ? JSON.stringify(obj) : null
 }
 
@@ -210,8 +205,6 @@ const submit = async () => {
     loading.value = true
     await saveResumeInfo(obj)
     await useUserStore().getUserBaseInfos() // 更新用户信息
-    // Snackbar.success(t('common.saveMsg'))
-    // setTimeout(() => { window.location.reload() }, 1000) // 刷新页面
     Confirm('系统提示', `提交成功,是否前往在线简历查看?`, { sureText: '立即前往' }).then(() => {
       window.location.href = '/recruit/personal/personalCenter/resume/online'
     })

+ 0 - 18
src/views/recruit/personal/home/index.vue

@@ -117,24 +117,6 @@ const handleSearch = (val) => {
   window.open(val ? `/recruit/personal/position?content=${val}` : `/recruit/personal/position`)
 }
 
-// const store = useUserStore()
-// const simple = ref(localStorage.getItem('simpleCompleteDialogHaveBeenShow'))
-// const showSimplePage = ref(false) // 只提示一次
-// if (!getToken()) showSimplePage.value = false
-// nextTick(() => {
-//   if (getToken()) {
-//     showSimplePage.value = simple.value && JSON.parse(simple.value) ? true : false
-//   }
-// })
-// const handleInfoClose = () => {
-//   localStorage.setItem('simpleCompleteDialogHaveBeenShow', false)
-// }
-// 更新用户基本信息
-// const handleUpdateInfo = async () => {
-//   handleInfoClose()
-//   await store.getUserBaseInfos(null)
-// }
-
 const adImgWidth = ref(document?.documentElement?.clientWidth ?
   Math.floor(document.documentElement.clientWidth/2.2) > 500 ?
   Math.floor(document.documentElement.clientWidth/2.2) : 500