|
@@ -2,8 +2,15 @@ import router from '@/router'
|
|
|
|
|
|
const isEnterprise = () => {
|
|
|
const currentRoute = router.currentRoute.value
|
|
|
- let bool = currentRoute?.meta?.loginType === 'enterprise'
|
|
|
+ // let bool = currentRoute?.meta?.loginType === 'enterprise'
|
|
|
+ const substr = '/recruit/enterprise'
|
|
|
+ let bool = currentRoute?.path?.includes(substr)
|
|
|
if (currentRoute?.path === '/enterpriseVerification') bool = true
|
|
|
+ const testUsePath = localStorage.getItem('routerTest')
|
|
|
+ if (currentRoute?.path === '/' && testUsePath?.includes(substr)) bool = true // 本地环境保存代码热更新会导致路径缺失问题
|
|
|
+ //
|
|
|
+ console.log('isEnterprise', bool)
|
|
|
+ console.log('currentRoute.path', currentRoute.path)
|
|
|
return bool
|
|
|
}
|
|
|
|