|
@@ -190,7 +190,8 @@ const mallRoutes = [
|
|
name: 'goodsDetail',
|
|
name: 'goodsDetail',
|
|
meta: {
|
|
meta: {
|
|
title: '商品详情',
|
|
title: '商品详情',
|
|
- isUseCache: false
|
|
|
|
|
|
+ isUseCache: false,
|
|
|
|
+ keepAlive: true
|
|
},
|
|
},
|
|
props: (route) => ({
|
|
props: (route) => ({
|
|
id: route.query.id
|
|
id: route.query.id
|
|
@@ -234,9 +235,31 @@ const mainRoutes = {
|
|
// 1. isTab: 是否通过tab展示内容, true: 是, false: 否
|
|
// 1. isTab: 是否通过tab展示内容, true: 是, false: 否
|
|
// 2. iframeUrl: 是否通过iframe嵌套展示内容, '以http[s]://开头': 是, '': 否
|
|
// 2. iframeUrl: 是否通过iframe嵌套展示内容, '以http[s]://开头': 是, '': 否
|
|
// 提示: 如需要通过iframe嵌套展示内容, 但不通过tab打开, 请自行创建组件使用iframe处理!
|
|
// 提示: 如需要通过iframe嵌套展示内容, 但不通过tab打开, 请自行创建组件使用iframe处理!
|
|
- { path: '/login', component: _import('modules/account/login'), name: 'login', meta: { title: '登录' } },
|
|
|
|
- { path: '/register', component: _import('modules/account/register'), name: 'register', meta: { title: '注册' } },
|
|
|
|
- { path: '/home', component: _import('common/home'), name: 'home', meta: { title: '首页', isTab: true } },
|
|
|
|
|
|
+ {
|
|
|
|
+ path: '/login',
|
|
|
|
+ component: _import('modules/account/login'),
|
|
|
|
+ name: 'login',
|
|
|
|
+ meta: {
|
|
|
|
+ title: '登录'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/register',
|
|
|
|
+ component: _import('modules/account/register'),
|
|
|
|
+ name: 'register',
|
|
|
|
+ meta: {
|
|
|
|
+ title: '注册'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/home',
|
|
|
|
+ component: _import('common/home'),
|
|
|
|
+ name: 'home',
|
|
|
|
+ meta: {
|
|
|
|
+ title: '首页',
|
|
|
|
+ isTab: true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
...toolsNav0,
|
|
...toolsNav0,
|
|
...toolsNav1,
|
|
...toolsNav1,
|
|
...toolsNav2,
|
|
...toolsNav2,
|