更换首页路由地址

This commit is contained in:
BianLzhaoMin 2024-12-19 16:01:16 +08:00
parent af28fdfd86
commit 65e9f8b574
4 changed files with 5 additions and 5 deletions

View File

@ -174,7 +174,7 @@ const isMyInfoPage = () => {
v-if="isMyInfoPage()" v-if="isMyInfoPage()"
:src="headerLogo" :src="headerLogo"
fit="cover" fit="cover"
@click="$router.push('/home')" @click="$router.push('/mall-view')"
/> />
<div class="header-right"> <div class="header-right">
<div class="header-item" v-if="isShowLogout"> <div class="header-item" v-if="isShowLogout">

View File

@ -125,7 +125,7 @@ const searchKeywordBtn = () => {
} }
$bus.emit('search', keywordIptValue.value) $bus.emit('search', keywordIptValue.value)
} }
if (route.path == '/home') { if (route.path == '/mall-view') {
if (searchTypeName.value === '装备') { if (searchTypeName.value === '装备') {
router.push({ router.push({
name: 'equipList', name: 'equipList',

View File

@ -70,7 +70,7 @@ const routes: Array<RouteRecordRaw> = [
{ {
path: '/', path: '/',
component: () => import('views/AppMain.vue'), component: () => import('views/AppMain.vue'),
redirect: '/home', redirect: '/mall-view',
meta: { meta: {
title: '首页', title: '首页',
keepAlive: false, keepAlive: false,
@ -80,7 +80,7 @@ const routes: Array<RouteRecordRaw> = [
children: [ children: [
// 首页 // 首页
{ {
path: 'home', path: 'mall-view',
name: 'home', name: 'home',
component: () => import('views/home/index.vue'), component: () => import('views/home/index.vue'),
meta: { meta: {

View File

@ -65,7 +65,7 @@ const handlerLogin = async () => {
if (route.query && route.query.redirect) { if (route.query && route.query.redirect) {
router.push(decodeURIComponent(route.query.redirect)) router.push(decodeURIComponent(route.query.redirect))
} else { } else {
router.push('/home') router.push('/mall-view')
} }
} }
} }