Commit 5bff9990 authored by “yiyousong”'s avatar “yiyousong”

perf:修改路由

parent 6314f069
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="matter-page flex flexc"> <div class="matter-page flex flexc">
<!-- 头部 --> <!-- 头部 -->
<Header> <Header>
<div slot="title" class="title">快速填单</div> <div slot="title" class="title">快速查看</div>
</Header> </Header>
<!-- 主体 --> <!-- 主体 -->
<div class="main flex1 flex"> <div class="main flex1 flex">
......
...@@ -9,47 +9,64 @@ VueRouter.prototype.push = function (location) { ...@@ -9,47 +9,64 @@ VueRouter.prototype.push = function (location) {
Vue.use(VueRouter); Vue.use(VueRouter);
const routes = [ const routes = [
// 首页
{ {
path: "/", path: "/",
redirect: "/home", component: () => import("@/pages/home/Home.vue"),
meta: {
name: "首页",
},
},
// 快速查看
{
path: "/matterList",
component: Layouts, component: Layouts,
children: [ children: [
// 首页
{
path: "/home",
component: () => import("@/pages/home/Home.vue"),
meta: {
name: "首页",
},
},
// 快速查看
{ {
path: "/matterList", path: "",
component: () => import("@/pages/showpage/MatterList.vue"), component: () => import("@/pages/showpage/MatterList.vue"),
meta: { meta: {
name: "快速查看", name: "快速查看",
}, },
}, },
// 快速搜索 ],
},
// 快速搜索
{
path: "/searchpage",
component: Layouts,
children: [
{ {
path: "/searchpage", path: "",
name: "快速搜索",
component: () => import("@/pages/searchpage/SearchPage.vue"), component: () => import("@/pages/searchpage/SearchPage.vue"),
meta: { meta: {
name: "快速搜索", name: "快速搜索",
}, },
}, },
// 事项分类 ],
// { },
// path: "/matterify", // 事项分类
// component: () => import("@/pages/showpage/MatterIfy.vue"), {
// meta:{ path: "/matterify",
// name: "事项分类", component: Layouts,
// } children: [
// }, {
// 材料展示 path: "",
component: () => import("@/pages/showpage/MatterIfy.vue"),
meta: {
name: "事项分类",
},
},
],
},
// 材料展示
{
path: "/showmaterials",
component: Layouts,
children: [
{ {
path: "/showmaterials", path: "",
component: () => import("@/pages/showpage/ShowMaterials.vue"), component: () => import("@/pages/showpage/ShowMaterials.vue"),
meta: { meta: {
name: "材料展示", name: "材料展示",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment