更换首页路由地址
This commit is contained in:
parent
af28fdfd86
commit
65e9f8b574
|
|
@ -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">
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
|
|
|
||||||
|
|
@ -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: {
|
||||||
|
|
|
||||||
|
|
@ -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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue