yuang-framework-ui-common 1.0.86 → 1.0.88
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/lib/config/httpConfig.ts
CHANGED
@@ -163,8 +163,12 @@ const beforeRequestConfig = (config: any) => {
|
|
163
163
|
config.headers["Sso-Access-Token"] = ssoAccessToken;
|
164
164
|
}
|
165
165
|
|
166
|
-
|
167
|
-
|
166
|
+
let uimsApplicationCode = getLocalStorageItem("uimsApplicationCode") ?? '';
|
167
|
+
if(uimsApplicationCode){
|
168
|
+
config.headers["Uims-Application-Code"] = uimsApplicationCode;
|
169
|
+
} else {
|
170
|
+
config.headers["Uims-Application-Code"] = application.uimsApplicationCode;
|
171
|
+
}
|
168
172
|
config.headers["Request-Id"] = new Date().getTime().toString() + (parseInt((Math.random() * 10000).toString())).toString();
|
169
173
|
}
|
170
174
|
|
@@ -1 +1,22 @@
|
|
1
|
-
|
1
|
+
const uimsMenuTargetList = [
|
2
|
+
{
|
3
|
+
value: 'framework-directory',
|
4
|
+
name: '框架目录'
|
5
|
+
}, {
|
6
|
+
value: 'framework-route',
|
7
|
+
name: '框架路由'
|
8
|
+
}, {
|
9
|
+
value: 'framework-iframe',
|
10
|
+
name: '框架iframe'
|
11
|
+
}, {
|
12
|
+
value: 'new-tab',
|
13
|
+
name: '新开标签'
|
14
|
+
}, {
|
15
|
+
value: 'single-route',
|
16
|
+
name: '独立路由'
|
17
|
+
},
|
18
|
+
];
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
export { uimsMenuTargetList };
|
package/lib/utils/routerUtils.ts
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* 异常路由,需要确保这个路由是最后一个被添加的路由,特别是在动态路由之后,否则会发生路由404的情况
|
3
|
+
*/
|
1
4
|
const getExceptionRoutes = () => {
|
2
5
|
return [
|
3
6
|
{
|
4
7
|
path: '/exception/403',
|
8
|
+
name: 'exception-403',
|
5
9
|
component: () => import('../../src/views/exception/403/index.vue'),
|
6
10
|
meta: {
|
7
11
|
title: '403'
|
@@ -9,6 +13,7 @@ const getExceptionRoutes = () => {
|
|
9
13
|
},
|
10
14
|
{
|
11
15
|
path: '/exception/500',
|
16
|
+
name: 'exception-500',
|
12
17
|
component: () => import('../../src/views/exception/500/index.vue'),
|
13
18
|
meta: {
|
14
19
|
title: '500'
|
@@ -16,6 +21,7 @@ const getExceptionRoutes = () => {
|
|
16
21
|
},
|
17
22
|
{
|
18
23
|
path: '/:path(.*)*',
|
24
|
+
name: 'exception-404',
|
19
25
|
component: () => import('../../src/views/exception/404/index.vue'),
|
20
26
|
meta: {
|
21
27
|
title: '404'
|