|
@@ -11,10 +11,12 @@ const isEnterprise = () => {
|
|
|
// 本地环境保存代码热更新会导致路径缺失问题
|
|
|
const testUsePath = localStorage.getItem('routerTest')
|
|
|
if (currentRoute?.path === '/' && (testUsePath?.includes(substr) || testUsePath?.includes('/enterpriseVerification'))) bool = true
|
|
|
+ // console.log('currentRoute', currentRoute.path)
|
|
|
+ // console.log('isEnterprise-bool', bool)
|
|
|
return bool
|
|
|
}
|
|
|
|
|
|
-export const getIsEnterprise = () => { isEnterprise() }
|
|
|
+export const getIsEnterprise = () => { return isEnterprise() }
|
|
|
|
|
|
// 获取token
|
|
|
export const getToken = (index) => { // index=1: 使用招聘token; index=2: 使用求职token
|