|
@@ -16,6 +16,7 @@ const { start, done } = useNProgress()
|
|
router.beforeEach(async (to, from, next) => {
|
|
router.beforeEach(async (to, from, next) => {
|
|
localStorage.setItem('routerTest', to.path) // 本地环境保存代码热更新会导致路径缺失问题
|
|
localStorage.setItem('routerTest', to.path) // 本地环境保存代码热更新会导致路径缺失问题
|
|
const tokenIndex = getIsEnterprise() ? 1: 2
|
|
const tokenIndex = getIsEnterprise() ? 1: 2
|
|
|
|
+ debugger
|
|
start()
|
|
start()
|
|
// loadStart()
|
|
// loadStart()
|
|
if (to.path === '/enterpriseVerification') {
|
|
if (to.path === '/enterpriseVerification') {
|
|
@@ -34,7 +35,7 @@ router.beforeEach(async (to, from, next) => {
|
|
dialogExtend('positionAd')
|
|
dialogExtend('positionAd')
|
|
}
|
|
}
|
|
// 企业信息完成度提示
|
|
// 企业信息完成度提示
|
|
- else if (localStorage.getItem('checkEnterpriseBaseInfoFalseHref' && tokenIndex === 1)) {
|
|
|
|
|
|
+ else if (localStorage.getItem('checkEnterpriseBaseInfoFalseHref') && tokenIndex === 1) {
|
|
if (to.path !== '/recruit/enterprise/position/add') { // 除了点击企业登录免费职位广告提示跳转路由不提示
|
|
if (to.path !== '/recruit/enterprise/position/add') { // 除了点击企业登录免费职位广告提示跳转路由不提示
|
|
const href = localStorage.getItem('checkEnterpriseBaseInfoFalseHref')
|
|
const href = localStorage.getItem('checkEnterpriseBaseInfoFalseHref')
|
|
localStorage.setItem('checkEnterpriseBaseInfoFalseHref', '')
|
|
localStorage.setItem('checkEnterpriseBaseInfoFalseHref', '')
|