|
@@ -5,7 +5,7 @@ import { getToken, getIsEnterprise } from '@/utils/auth'
|
|
|
import { useDictStore } from '@/store/dict'
|
|
|
import { useUserStore } from '@/store/user'
|
|
|
import Confirm from '@/plugins/confirm'
|
|
|
-import necessaryInfo from '@/plugins/necessaryInfo'
|
|
|
+import dialogExtend from '@/plugins/dialogExtend'
|
|
|
|
|
|
const { start, done } = useNProgress()
|
|
|
// loginType:1.enterprise: 企业路由
|
|
@@ -27,23 +27,25 @@ router.beforeEach(async (to, from, next) => {
|
|
|
// 强制修改密码
|
|
|
if (localStorage.getItem('entUpdatePassword') === 'needChange') fullScreen('entUpdatePassword')
|
|
|
// 强制填写个人信息
|
|
|
- else if (localStorage.getItem('necessaryInfoReady') === 'fddeaddc47868b' && tokenIndex === 2) necessaryInfo('necessaryInfoDialog')
|
|
|
+ else if (localStorage.getItem('necessaryInfoReady') === 'fddeaddc47868b' && tokenIndex === 2) dialogExtend('necessaryInfoDialog')
|
|
|
// 企业登录免费职位广告提示
|
|
|
// else if (localStorage.getItem('positionAd')) {
|
|
|
// localStorage.setItem('positionAd', '')
|
|
|
- // necessaryInfo('positionAd')
|
|
|
+ // dialogExtend('positionAd')
|
|
|
// }
|
|
|
// 企业信息完成度提示
|
|
|
else if (localStorage.getItem('checkEnterpriseBaseInfoFalseHref')) {
|
|
|
- const href = localStorage.getItem('checkEnterpriseBaseInfoFalseHref')
|
|
|
- localStorage.setItem('checkEnterpriseBaseInfoFalseHref', '')
|
|
|
- localStorage.setItem('entUpdatePassword', '')
|
|
|
- if (to.path !== href) {
|
|
|
- setTimeout(() => {
|
|
|
- Confirm('系统提示', '企业信息设置未完善,是否前往完善?').then(() => {
|
|
|
- window.location.href = href
|
|
|
- })
|
|
|
- }, 4000)
|
|
|
+ if (to.path !== '/recruit/enterprise/position/add') { // 除了点击企业登录免费职位广告提示跳转路由不提示
|
|
|
+ const href = localStorage.getItem('checkEnterpriseBaseInfoFalseHref')
|
|
|
+ localStorage.setItem('checkEnterpriseBaseInfoFalseHref', '')
|
|
|
+ localStorage.setItem('entUpdatePassword', '')
|
|
|
+ if (to.path !== href) {
|
|
|
+ setTimeout(() => {
|
|
|
+ Confirm('系统提示', '企业信息设置未完善,是否前往完善?').then(() => {
|
|
|
+ window.location.href = href
|
|
|
+ })
|
|
|
+ }, 4000)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (to.path === '/login') {
|