|
@@ -4,14 +4,16 @@ import Home from "../views/Home.vue";
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
const routes = [
|
|
|
- {
|
|
|
- path: "*", //输错路由回首页
|
|
|
- redirect: "/404",
|
|
|
+ //登录
|
|
|
+ {
|
|
|
+ path: "/login",
|
|
|
+ name: "login",
|
|
|
+ component: r => require.ensure([], () => r(require("../views/login/Login.vue")), "Login"),
|
|
|
hidden: true,
|
|
|
meta: {
|
|
|
- title: "输错路由回首页",
|
|
|
+ title: "登录",
|
|
|
keepAlive: false,
|
|
|
- level: 0 //判断是否缓存 0为不缓存 1为缓存 2为详情页
|
|
|
+ level: 0
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -24,18 +26,17 @@ const routes = [
|
|
|
level: 0
|
|
|
}
|
|
|
},
|
|
|
- //登录
|
|
|
{
|
|
|
- path: "/login",
|
|
|
- name: "login",
|
|
|
- component: r => require.ensure([], () => r(require("../views/login/Login.vue")), "Login"),
|
|
|
+ path: "*", //输错路由回首页
|
|
|
+ redirect: "/404",
|
|
|
hidden: true,
|
|
|
meta: {
|
|
|
- title: "登录",
|
|
|
+ title: "输错路由回首页",
|
|
|
keepAlive: false,
|
|
|
- level: 0
|
|
|
+ level: 0 //判断是否缓存 0为不缓存 1为缓存 2为详情页
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
//404
|
|
|
{
|
|
|
path: "/404",
|
|
@@ -61,6 +62,12 @@ const routes = [
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ path: '/Viewer',
|
|
|
+ component: () => import('../views/xDesigner/viewer.vue'),
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
path: "/home",
|
|
|
component: Home,
|
|
|
iconCls: "fa el-icon-s-data",
|
|
@@ -70,8 +77,7 @@ const routes = [
|
|
|
keepAlive: false,
|
|
|
level: 0
|
|
|
},
|
|
|
- children: [
|
|
|
- {
|
|
|
+ children: [{
|
|
|
path: "/summarys/index",
|
|
|
component: () => import("../views/summarys/index.vue"),
|
|
|
name: "summarys",
|
|
@@ -82,33 +88,8 @@ const routes = [
|
|
|
level: 0
|
|
|
}
|
|
|
},
|
|
|
- // {
|
|
|
- // hidden: true,
|
|
|
- // path: '/Viewer/:path',
|
|
|
- // name: 'Viewer',
|
|
|
- // meta: {
|
|
|
- // title: "Viewer",
|
|
|
- // keepAlive: false,
|
|
|
- // level: 0 //判断是否缓存 0为不缓存 1为缓存 2为详情页
|
|
|
- // },
|
|
|
- // component: () => import("../views/xDesigner/viewer.vue")
|
|
|
- // },
|
|
|
]
|
|
|
},
|
|
|
-
|
|
|
- // {
|
|
|
- // hidden: true,
|
|
|
- // path: '/Viewer/:path',
|
|
|
- // name: 'Viewer',
|
|
|
- // meta: {
|
|
|
- // title: "Viewer",
|
|
|
- // keepAlive: false,
|
|
|
- // level: 0 //判断是否缓存 0为不缓存 1为缓存 2为详情页
|
|
|
- // },
|
|
|
- // component: () => import("../views/xDesigner/viewer.vue")
|
|
|
- // },
|
|
|
- // ]
|
|
|
- // },
|
|
|
{
|
|
|
path: "/home",
|
|
|
component: Home,
|
|
@@ -119,8 +100,7 @@ const routes = [
|
|
|
keepAlive: false,
|
|
|
level: 0
|
|
|
},
|
|
|
- children: [
|
|
|
- {
|
|
|
+ children: [{
|
|
|
path: "/goods/goodsList",
|
|
|
component: () => import("../views/goods/goodsList.vue"),
|
|
|
name: "goodsList",
|
|
@@ -156,19 +136,17 @@ const routes = [
|
|
|
keepAlive: false,
|
|
|
level: 0
|
|
|
},
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "/upload/index",
|
|
|
- component: () => import("../views/upload/index.vue"),
|
|
|
- name: "upload",
|
|
|
- hidden: false,
|
|
|
- meta: {
|
|
|
- title: "自定义上传导入",
|
|
|
- keepAlive: false,
|
|
|
- level: 0
|
|
|
- }
|
|
|
+ children: [{
|
|
|
+ path: "/upload/index",
|
|
|
+ component: () => import("../views/upload/index.vue"),
|
|
|
+ name: "upload",
|
|
|
+ hidden: false,
|
|
|
+ meta: {
|
|
|
+ title: "自定义上传导入",
|
|
|
+ keepAlive: false,
|
|
|
+ level: 0
|
|
|
}
|
|
|
- ]
|
|
|
+ }]
|
|
|
},
|
|
|
{
|
|
|
path: "/home",
|
|
@@ -180,19 +158,17 @@ const routes = [
|
|
|
keepAlive: false,
|
|
|
level: 0
|
|
|
},
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "/formValidation/index",
|
|
|
- component: () => import("../views/formValidation/index.vue"),
|
|
|
- name: "formValidation",
|
|
|
- hidden: false,
|
|
|
- meta: {
|
|
|
- title: "校验动态下拉",
|
|
|
- keepAlive: false,
|
|
|
- level: 0
|
|
|
- }
|
|
|
+ children: [{
|
|
|
+ path: "/formValidation/index",
|
|
|
+ component: () => import("../views/formValidation/index.vue"),
|
|
|
+ name: "formValidation",
|
|
|
+ hidden: false,
|
|
|
+ meta: {
|
|
|
+ title: "校验动态下拉",
|
|
|
+ keepAlive: false,
|
|
|
+ level: 0
|
|
|
}
|
|
|
- ]
|
|
|
+ }]
|
|
|
},
|
|
|
{
|
|
|
path: '/AppDesign',
|
|
@@ -228,4 +204,4 @@ const router = new VueRouter({
|
|
|
// }
|
|
|
// });
|
|
|
|
|
|
-export default router;
|
|
|
+export default router;
|