yuang-framework-ui-common 1.0.86 → 1.0.87

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.
@@ -163,8 +163,12 @@ const beforeRequestConfig = (config: any) => {
163
163
  config.headers["Sso-Access-Token"] = ssoAccessToken;
164
164
  }
165
165
 
166
- config.headers["Uims-Application-Code"] = application.uimsApplicationCode;
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
 
@@ -2,6 +2,7 @@ const getExceptionRoutes = () => {
2
2
  return [
3
3
  {
4
4
  path: '/exception/403',
5
+ name: 'exception-403',
5
6
  component: () => import('../../src/views/exception/403/index.vue'),
6
7
  meta: {
7
8
  title: '403'
@@ -9,6 +10,7 @@ const getExceptionRoutes = () => {
9
10
  },
10
11
  {
11
12
  path: '/exception/500',
13
+ name: 'exception-500',
12
14
  component: () => import('../../src/views/exception/500/index.vue'),
13
15
  meta: {
14
16
  title: '500'
@@ -16,6 +18,7 @@ const getExceptionRoutes = () => {
16
18
  },
17
19
  {
18
20
  path: '/:path(.*)*',
21
+ name: 'exception-404',
19
22
  component: () => import('../../src/views/exception/404/index.vue'),
20
23
  meta: {
21
24
  title: '404'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-common",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {