a1300399510@qq.com 提交于 2023/03/29 -16:20:02
This commit is contained in:
@@ -12,11 +12,12 @@ VueRouter.prototype.push = function push(to) {
|
||||
import getPageTitle from "@/utils/title-config";
|
||||
|
||||
|
||||
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 Index = () => import('views/index/index')
|
||||
const Recommend = () => import('views/index/recommend/Recommend')
|
||||
const Collect = () => import('views/index/collect/Collect')
|
||||
const AllSections = () => import('views/index/allSections/AllSections')
|
||||
const search = () => import('views/search/search')
|
||||
const SearchResult = () => import('views/search/searchResult/SearchResult')
|
||||
|
||||
const routes = [
|
||||
{
|
||||
@@ -50,16 +51,24 @@ const routes = [
|
||||
title: "全部版块"
|
||||
}
|
||||
},
|
||||
|
||||
]
|
||||
}, {
|
||||
path: '/searchResult', // 首页
|
||||
name: 'search',
|
||||
redirect: "/searchResult",
|
||||
component: search,
|
||||
children: [
|
||||
{
|
||||
path: '/searchResult',
|
||||
name: 'SearchResult',
|
||||
name: 'Recommend',
|
||||
component: SearchResult,
|
||||
meta: {
|
||||
title: "搜索帖子"
|
||||
}
|
||||
}
|
||||
},
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user