Commit a501f276 by amateur

修改配置

1 parent 9106c794
...@@ -4,7 +4,9 @@ const Routers = [ ...@@ -4,7 +4,9 @@ const Routers = [
name: 'News', name: 'News',
meta: { meta: {
title: '新闻动态', title: '新闻动态',
isLogin: false isLogin: false,
keepAlive: true,
keepAlivePage: ['NewsSearch']
}, },
component: () => import(/* webpackChunkName: "News" */ '@/views/news/index.vue') // 新闻动态 component: () => import(/* webpackChunkName: "News" */ '@/views/news/index.vue') // 新闻动态
}, },
......
...@@ -119,7 +119,17 @@ ...@@ -119,7 +119,17 @@
"url": "/home", "url": "/home",
"title": "首页", "title": "首页",
"class": "block red" "class": "block red"
} },
{
"url": "/news",
"title": "新闻动态",
"class": "block red"
},
{
"url": "/selfregulating",
"title": "自律规则",
"class": "block red"
},
] ]
}, },
{ {
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
] ]
}, },
handleSearch () { handleSearch () {
this.$router.push({ name: 'SelfRegulatingSearch' }) this.$router.push({ name: 'NewsSearch' })
}, },
initKeywordListener () { initKeywordListener () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!