imatrix-ui 2.8.1-dw → 2.8.1-dw-p1
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 +1 -1
- package/src/utils/request.js +8 -5
package/package.json
CHANGED
package/src/utils/request.js
CHANGED
|
@@ -13,9 +13,12 @@ import {
|
|
|
13
13
|
getI18n
|
|
14
14
|
} from './util'
|
|
15
15
|
import {
|
|
16
|
-
getRelativeBaseUrl
|
|
17
|
-
getLoginUrl
|
|
16
|
+
getRelativeBaseUrl
|
|
18
17
|
} from './common-util'
|
|
18
|
+
// import {
|
|
19
|
+
// getRelativeBaseUrl,
|
|
20
|
+
// getLoginUrl
|
|
21
|
+
// } from './common-util'
|
|
19
22
|
// 创建axios实例
|
|
20
23
|
const service = axios.create({
|
|
21
24
|
// baseURL: process.env.VUE_APP_BASE_API, // api 的 base_url
|
|
@@ -75,9 +78,9 @@ service.interceptors.response.use(
|
|
|
75
78
|
window.parent.postMessage('{"loginTimeout":"' + window.location.href + '"}', '*')
|
|
76
79
|
} else {
|
|
77
80
|
// 当前出错的页面不是在子页面iframe内,需要跳转到子系统的登录页面
|
|
78
|
-
getLoginUrl().then(loginUrl => {
|
|
79
|
-
|
|
80
|
-
})
|
|
81
|
+
// getLoginUrl().then(loginUrl => {
|
|
82
|
+
// window.location.href = loginUrl
|
|
83
|
+
// })
|
|
81
84
|
}
|
|
82
85
|
} else if (error.response.status === 403) {
|
|
83
86
|
// ForbiddenException(403) 403没权限
|