|
@@ -200,15 +200,21 @@ const navList = ref([
|
|
|
{ title: '了解门墩儿', path: '/about' }
|
|
|
])
|
|
|
|
|
|
-const mode = import.meta.env.VITE_NODE_ENV
|
|
|
-console.log(import.meta.env.VITE_NODE_ENV, '当前环境变量===========')
|
|
|
-
|
|
|
const mall = navList.value.find(item => item.isEdit)
|
|
|
// 区分生产环境展示地址
|
|
|
-mall.path = mode === 'production' ? '/pointsExchange' : '/mall'
|
|
|
+mall.path = import.meta.env.VITE_NODE_ENV === 'production' ? '/pointsExchange' : '/mall'
|
|
|
|
|
|
const handleClick = (e, status) => {
|
|
|
if (!e.path) return
|
|
|
+
|
|
|
+ // 火苗儿校企
|
|
|
+ if (e.path === '/flameLogin') {
|
|
|
+ // 有登录状态的则直接跳转,没有则登录
|
|
|
+ const path = isSchool && localStorage.getItem('schoolInfo') ? '/recruit/teacher/studentList/index' : e.path
|
|
|
+ window.open(path)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if (status) window.open(e.path)
|
|
|
else router.push(e.path)
|
|
|
}
|