|
@@ -4,11 +4,11 @@ import Router from "vue-router";
|
|
|
Vue.use(Router);
|
|
|
|
|
|
/* Layout */
|
|
|
-// import Layout from "@/pages/layout/layout";
|
|
|
+import Layout from "@/pages/layout/layout";
|
|
|
const { getSetting } = window.systemParamsUtils;
|
|
|
let layoutType = getSetting("LAYOUT");
|
|
|
// let a = "layout"
|
|
|
-const Layout = () => import(`@/pages/${layoutType}/layout`);
|
|
|
+// const Layout = () => import(`@/pages/${layoutType}/layout`);
|
|
|
|
|
|
/* Router Modules */
|
|
|
import userManage from "./modules/user-manage";
|
|
@@ -40,8 +40,7 @@ import empowerManage from "./modules/empower-manage";
|
|
|
**/
|
|
|
export const constantRouterMap = [];
|
|
|
|
|
|
-export const asyncRouterMap = [
|
|
|
- {
|
|
|
+export const asyncRouterMap = [{
|
|
|
path: "/",
|
|
|
component: Layout,
|
|
|
redirect: "/home"
|
|
@@ -55,17 +54,17 @@ export const asyncRouterMap = [
|
|
|
path: "/redirect",
|
|
|
component: Layout,
|
|
|
hidden: true,
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "/redirect/:path*",
|
|
|
- component: () => import("@/pages/common/redirect/index")
|
|
|
- }
|
|
|
- ]
|
|
|
+ children: [{
|
|
|
+ path: "/redirect/:path*",
|
|
|
+ component: () =>
|
|
|
+ import ("@/pages/common/redirect/index")
|
|
|
+ }]
|
|
|
},
|
|
|
// 登录
|
|
|
{
|
|
|
path: "/login",
|
|
|
- component: () => import("@/pages/common/login/index"),
|
|
|
+ component: () =>
|
|
|
+ import ("@/pages/common/login/index"),
|
|
|
// component: () => import("@/pages/common/login-page/login-type-1"),
|
|
|
hidden: true
|
|
|
},
|
|
@@ -76,14 +75,13 @@ export const asyncRouterMap = [
|
|
|
redirect: "/home/index",
|
|
|
meta: { title: "我的主页", icon: "el-icon-s-home", noCache: false },
|
|
|
// hidden: true,
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "index",
|
|
|
- component: () => import("@/pages/home"),
|
|
|
- name: "index",
|
|
|
- meta: { title: "我的主页", noCache: false }
|
|
|
- }
|
|
|
- ]
|
|
|
+ children: [{
|
|
|
+ path: "index",
|
|
|
+ component: () =>
|
|
|
+ import ("@/pages/home"),
|
|
|
+ name: "index",
|
|
|
+ meta: { title: "我的主页", noCache: false }
|
|
|
+ }]
|
|
|
},
|
|
|
//用户管理
|
|
|
// userManage,
|
|
@@ -106,14 +104,13 @@ export const asyncRouterMap = [
|
|
|
redirect: "/dynamic-author-manage",
|
|
|
alwaysShow: true,
|
|
|
meta: { title: "动态授权管理", icon: "el-icon-time", noCache: true, permission: ["YHGLPT_DTSQGL"] },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "dynamic-manage",
|
|
|
- component: () => import("@/pages/dynamic-author-manage"),
|
|
|
- name: "dynamic-author-manage",
|
|
|
- meta: { title: "动态授权管理", noCache: false, permission: ["YHGLPT_DTSQGL_DTSQGL"] }
|
|
|
- }
|
|
|
- ]
|
|
|
+ children: [{
|
|
|
+ path: "dynamic-manage",
|
|
|
+ component: () =>
|
|
|
+ import ("@/pages/dynamic-author-manage"),
|
|
|
+ name: "dynamic-author-manage",
|
|
|
+ meta: { title: "动态授权管理", noCache: false, permission: ["YHGLPT_DTSQGL_DTSQGL"] }
|
|
|
+ }]
|
|
|
},
|
|
|
// 服务授权管理
|
|
|
{
|
|
@@ -122,14 +119,13 @@ export const asyncRouterMap = [
|
|
|
redirect: "/service-delagate",
|
|
|
alwaysShow: true,
|
|
|
meta: { title: "服务授权管理", icon: "el-icon-time", noCache: true },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: "service-delagate",
|
|
|
- component: () => import("@/pages/service-delegate"),
|
|
|
- name: "service-delagate",
|
|
|
- meta: { title: "服务授权", noCache: false }
|
|
|
- }
|
|
|
- ]
|
|
|
+ children: [{
|
|
|
+ path: "service-delagate",
|
|
|
+ component: () =>
|
|
|
+ import ("@/pages/service-delegate"),
|
|
|
+ name: "service-delagate",
|
|
|
+ meta: { title: "服务授权", noCache: false }
|
|
|
+ }]
|
|
|
}
|
|
|
];
|
|
|
|
|
@@ -137,4 +133,4 @@ export default new Router({
|
|
|
// mode: "history", // require service support
|
|
|
scrollBehavior: () => ({ y: 0 }),
|
|
|
routes: constantRouterMap
|
|
|
-});
|
|
|
+});
|