|
@@ -199,17 +199,20 @@ export const useUserStore = defineStore('user',
|
|
|
async checkEnterpriseBaseInfo () {
|
|
|
try {
|
|
|
const data = await getEnterpriseBaseInfo()
|
|
|
- // 检验必填信息
|
|
|
- const keyArr = ['industryId', 'financingStatus', 'scale', 'introduce', 'logoUrl'] // 必填信息列表
|
|
|
- let href = '/recruit/enterprise/entInfoSetting'
|
|
|
- const valid = Object.keys(data).length && keyArr.every(e => {
|
|
|
- const bool = data[e] && data[e] !== 0
|
|
|
- if (!bool && e === 'logoUrl') href = '/recruit/enterprise/entInfoSetting?tabKey=2'
|
|
|
- return bool
|
|
|
- })
|
|
|
- if (!valid) {
|
|
|
- localStorage.setItem('checkEnterpriseBaseInfoFalseHref', href)
|
|
|
+ if (data?.first === true || data?.first === 'true') { // 首次登录才提示
|
|
|
+ localStorage.setItem('checkEnterpriseBaseInfoFalseHref', '/recruit/enterprise/entInfoSetting')
|
|
|
}
|
|
|
+ // // 检验必填信息
|
|
|
+ // const keyArr = ['industryId', 'financingStatus', 'scale', 'introduce', 'logoUrl'] // 必填信息列表
|
|
|
+ // let href = '/recruit/enterprise/entInfoSetting'
|
|
|
+ // const valid = Object.keys(data).length && keyArr.every(e => {
|
|
|
+ // const bool = data[e] && data[e] !== 0
|
|
|
+ // if (!bool && e === 'logoUrl') href = '/recruit/enterprise/entInfoSetting?tabKey=2'
|
|
|
+ // return bool
|
|
|
+ // })
|
|
|
+ // if (!valid) {
|
|
|
+ // localStorage.setItem('checkEnterpriseBaseInfoFalseHref', href)
|
|
|
+ // }
|
|
|
} catch (error) {
|
|
|
// console.log(error)
|
|
|
}
|