diff --git a/src/router/index.js b/src/router/index.js index 90fc299..16b7bf2 100755 --- a/src/router/index.js +++ b/src/router/index.js @@ -16,6 +16,7 @@ const Index = () => import('views/index') const Recommend = () => import('views/recommend/Recommend') const Collect = () => import('views/collect/Collect') const AllSections = () => import('views/allSections/AllSections') +const SearchResult = () => import('views/searchResult/SearchResult') const routes = [ { @@ -48,6 +49,14 @@ const routes = [ meta: { title: "全部版块" } + }, + { + path: '/searchResult', + name: 'SearchResult', + component: SearchResult, + meta: { + title: "搜索帖子" + } } ] }, diff --git a/src/views/allSections/AllSections.vue b/src/views/allSections/AllSections.vue index 4471f89..1b6975c 100755 --- a/src/views/allSections/AllSections.vue +++ b/src/views/allSections/AllSections.vue @@ -6,7 +6,7 @@ @click="allClick(index)">{{ item.title }} -