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

perf:修改路由

parent 6314f069
......@@ -3,7 +3,7 @@
<div class="matter-page flex flexc">
<!-- 头部 -->
<Header>
<div slot="title" class="title">快速填单</div>
<div slot="title" class="title">快速查看</div>
</Header>
<!-- 主体 -->
<div class="main flex1 flex">
......
......@@ -9,47 +9,64 @@ VueRouter.prototype.push = function (location) {
Vue.use(VueRouter);
const routes = [
// 首页
{
path: "/",
redirect: "/home",
component: () => import("@/pages/home/Home.vue"),
meta: {
name: "首页",
},
},
// 快速查看
{
path: "/matterList",
component: Layouts,
children: [
// 首页
{
path: "/home",
component: () => import("@/pages/home/Home.vue"),
meta: {
name: "首页",
},
},
// 快速查看
{
path: "/matterList",
path: "",
component: () => import("@/pages/showpage/MatterList.vue"),
meta: {
name: "快速查看",
},
},
// 快速搜索
],
},
// 快速搜索
{
path: "/searchpage",
component: Layouts,
children: [
{
path: "/searchpage",
name: "快速搜索",
path: "",
component: () => import("@/pages/searchpage/SearchPage.vue"),
meta: {
name: "快速搜索",
},
},
// 事项分类
// {
// path: "/matterify",
// component: () => import("@/pages/showpage/MatterIfy.vue"),
// meta:{
// name: "事项分类",
// }
// },
// 材料展示
],
},
// 事项分类
{
path: "/matterify",
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"),
meta: {
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