浏览代码

redirect=>home

Xiao_123 8 月之前
父节点
当前提交
e41daf375d
共有 3 个文件被更改,包括 4 次插入5 次删除
  1. 1 2
      src/layout/company/navBar.vue
  2. 1 1
      src/layout/personal/navBar.vue
  3. 2 2
      src/router/modules/common.js

+ 1 - 2
src/layout/company/navBar.vue

@@ -114,8 +114,7 @@ const handleToVip = () => {
   router.push({ path: '/recruit/enterprise/memberCenter/myMembers' })
 }
 
-// const handleLogoClick = () => { router.push({ path: '/recruit/enterprise'}) }
-const handleLogoClick = () => { window.open('/') } // 点击logo
+const handleLogoClick = () => { window.open('/entrances') } // 点击logo
 
 const enterpriseClick = (tabKey = 1) => {
   const path = '/recruit/enterprise/informationManagement/informationSettings'

+ 1 - 1
src/layout/personal/navBar.vue

@@ -166,7 +166,7 @@ const routeActive = computed(() => {
   return index
 })
 
-const handleLogoClick = () => { window.open('/') } // 点击logo
+const handleLogoClick = () => { window.open('/entrances') } // 点击logo
 
 const show = ref(false)
 const radios = ref(null)

+ 2 - 2
src/router/modules/common.js

@@ -6,9 +6,9 @@ const common = [
   ...headhunting,
   {
     path: '', // 门墩项目列表/项目入口页
-    redirect: '/entrances',
+    redirect: '/recruitHome',
     children: [
-      { path: '/', redirect: '/entrances' },
+      { path: '/', redirect: '/recruitHome' },
       {
         path: '/entrances',
         component: () => import('@/views/entrances/index'),