cloud-web-corejs 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.8",
4
+ "version": "1.0.10",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -160,6 +160,7 @@
160
160
  "src/lang/index.js",
161
161
  "src/layout",
162
162
  "src/filters",
163
+ "src/router",
163
164
  "permission.js",
164
165
  "src/index.js",
165
166
  "src/App.vue"
package/src/index.js CHANGED
@@ -8,7 +8,7 @@ import '@/styles/index.scss'; // global css
8
8
 
9
9
  import App from '@base/App';
10
10
  import store from '@base/store';
11
- import router from '@/router';
11
+ import router from '@base/router';
12
12
 
13
13
  import '@/icons'; // icon
14
14
  import '@base/permission'; // permission control
package/src/permission.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**version-1.0*/
2
- import router from "@/router";
2
+ import router from "@base/router";
3
3
  import store from "./store";
4
4
  import {
5
5
  Message
@@ -0,0 +1,30 @@
1
+ import Vue from "vue";
2
+ import Router from "vue-router";
3
+
4
+ Vue.use(Router);
5
+
6
+ import {constantRoutes as route1s} from "@base/router/modules/system";
7
+ import {constantRoutes as route2s} from "@base/router/modules/customer";
8
+
9
+ export const constantRoutes = [
10
+ ...route1s,
11
+ ...route2s
12
+ ];
13
+
14
+ const createRouter = () =>
15
+ new Router({
16
+ // mode: 'history', // require service support
17
+ scrollBehavior: () => ({
18
+ y: 0,
19
+ }),
20
+ routes: constantRoutes
21
+ });
22
+
23
+ const router = createRouter();
24
+
25
+ export function resetRouter() {
26
+ const newRouter = createRouter();
27
+ router.matcher = newRouter.matcher; // reset router
28
+ }
29
+
30
+ export default router;
@@ -0,0 +1,8 @@
1
+ export const constantRoutes = [
2
+ /*{
3
+ path: "",
4
+ component: () => import("@base/layout/index"),
5
+ children: []
6
+ }*/
7
+ ];
8
+
@@ -0,0 +1,116 @@
1
+
2
+ export const sidebarRoutes = []
3
+
4
+ export const asyncRoutes = [
5
+ // 404 page must be placed at the end !!!
6
+ {
7
+ path: "*",
8
+ redirect: "/404",
9
+ hidden: true
10
+ }
11
+ ];
12
+
13
+ export const constantRoutes = [
14
+ {
15
+ path: "/redirect",
16
+ component: () => import("@base/layout/index"),
17
+ hidden: true,
18
+ children: [
19
+ {
20
+ path: "/redirect/:path(.*)",
21
+ component: () => import("@base/views/user/redirect/index"),
22
+ }
23
+ ]
24
+ },
25
+ {
26
+ path: "/login",
27
+ component: () => import("@base/views/user/login/index"),
28
+ hidden: true,
29
+ },
30
+ /* {
31
+ path: '/auth-redirect',
32
+ component: () => import('@/views/login/auth-redirect'),
33
+ hidden: true
34
+ }, */
35
+ {
36
+ path: "/404",
37
+ component: () => import("@base/views/user/error-page/404"),
38
+ hidden: true
39
+ },
40
+ {
41
+ path: "/401",
42
+ component: () => import("@base/views/user/error-page/401"),
43
+ hidden: true
44
+ },
45
+ {
46
+ path: "/user/wf/iframe/index",
47
+ component: () => import("@base/views/user/wf/iframe/index"),
48
+ hidden: true,
49
+ },
50
+
51
+ {
52
+ path: "/user/user/infoContent",
53
+ component: () => import("@base/views/user/user/infoContent"),
54
+ hidden: true,
55
+ },
56
+ {
57
+ path: "/outLinkView",
58
+ component: () => import("@base/views/user/outLink/view"),
59
+ meta: {
60
+ checkToken: false
61
+ },
62
+ hidden: true
63
+ },
64
+ {
65
+ path: "/form_outLinkView",
66
+ component: () => import("@base/views/user/outLink/form_view"),
67
+ meta: {
68
+ checkToken: false
69
+ },
70
+ hidden: true
71
+ },
72
+ {
73
+ path: "/activiti_wf",
74
+ component: () => import("@base/views/user/wf/wf_obj_config/activiti_wf"),
75
+ meta: {
76
+ checkToken: false
77
+ },
78
+ hidden: true
79
+ },
80
+ {
81
+ path: "/",
82
+ component: () => import("@base/layout/index"),
83
+ redirect: "/home",
84
+ children: [
85
+ {
86
+ path: "home",
87
+ component: () => import("@base/views/user/home/index"),
88
+ name: "home",
89
+ meta: {
90
+ title: "首页",
91
+ icon: "dashboard",
92
+ affix: true
93
+ }
94
+ },
95
+ {
96
+ path: "basic/wf/wf_manage/list",
97
+ component: () => import("@base/views/user/wf/wf_manage/list"),
98
+ name: "wf_manage:list",
99
+ meta: {
100
+ title: "流程待办",
101
+ icon: "dashboard"
102
+ }
103
+ },
104
+ {
105
+ path: "user/notify_message/list",
106
+ component: () => import("@base/views/user/notify_message/list"),
107
+ name: "notify_message:list",
108
+ meta: {
109
+ title: "消息通知",
110
+ icon: "dashboard"
111
+ }
112
+ }
113
+ ]
114
+ }
115
+ ];
116
+
@@ -12,7 +12,7 @@ import {
12
12
  } from '../../utils/auth'
13
13
  import router, {
14
14
  resetRouter
15
- } from '@/router'
15
+ } from '@base/router'
16
16
  import {
17
17
  getDispermissions
18
18
  } from '../../api/menu'