diff --git a/src/components/header/index.vue b/src/components/header/index.vue index 439fcc0..0decea3 100644 --- a/src/components/header/index.vue +++ b/src/components/header/index.vue @@ -174,7 +174,7 @@ const isMyInfoPage = () => { v-if="isMyInfoPage()" :src="headerLogo" fit="cover" - @click="$router.push('/home')" + @click="$router.push('/mall-view')" />
diff --git a/src/layout/header.vue b/src/layout/header.vue index b9db139..29e3b71 100644 --- a/src/layout/header.vue +++ b/src/layout/header.vue @@ -125,7 +125,7 @@ const searchKeywordBtn = () => { } $bus.emit('search', keywordIptValue.value) } - if (route.path == '/home') { + if (route.path == '/mall-view') { if (searchTypeName.value === '装备') { router.push({ name: 'equipList', diff --git a/src/router/index.ts b/src/router/index.ts index 57bc92d..d5a7518 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -70,7 +70,7 @@ const routes: Array = [ { path: '/', component: () => import('views/AppMain.vue'), - redirect: '/home', + redirect: '/mall-view', meta: { title: '首页', keepAlive: false, @@ -80,7 +80,7 @@ const routes: Array = [ children: [ // 首页 { - path: 'home', + path: 'mall-view', name: 'home', component: () => import('views/home/index.vue'), meta: { diff --git a/src/views/Login.vue b/src/views/Login.vue index 3968e69..1e906f4 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -65,7 +65,7 @@ const handlerLogin = async () => { if (route.query && route.query.redirect) { router.push(decodeURIComponent(route.query.redirect)) } else { - router.push('/home') + router.push('/mall-view') } } }