Xiao_123 1 год назад
Родитель
Сommit
945f5acb99
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      src/store/user.js
  2. 2 2
      src/views/recruit/personal/shareJob/index.vue

+ 1 - 1
src/store/user.js

@@ -75,7 +75,7 @@ export const useUserStore = defineStore('user',
           const api = this.loginType ? null : getBaseInfo
           if (!api) return
           const data = await api({ userId: userId || this.accountInfo.userId })
-          if (!data) return
+          if (!data) return localStorage.setItem('baseInfo', JSON.stringify({ sex: null }))
           this.baseInfo = await this.getFieldText(data)
           localStorage.setItem('baseInfo', JSON.stringify(this.baseInfo))
         } catch (error) {

+ 2 - 2
src/views/recruit/personal/shareJob/index.vue

@@ -145,8 +145,8 @@ const handleDelivery = () => {
   }
 }
 // 快速登录成功
-const loginSuccess = ({ type = false, info = {}, keyArr = [] }) => {
-  const bool = handleCheckJobDelivery()
+const loginSuccess = async ({ type = false, info = {}, keyArr = [] }) => {
+  const bool = await handleCheckJobDelivery()
   showQuickResumeDialog.value = false
   if (bool) return Snackbar.warning(t('resume.alreadyResume'))
   showHandleDelivery.value = !showQuickResumeDialog.value