imatrix-ui 2.8.84 → 2.8.85-dwtmp1
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/super-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/src/utils/request.js +10 -8
package/package.json
CHANGED
package/src/utils/request.js
CHANGED
|
@@ -61,6 +61,7 @@ service.interceptors.response.use(
|
|
|
61
61
|
// 出错了之后允许再次提交
|
|
62
62
|
store.commit('togglePreventReclick', false)
|
|
63
63
|
if (error.response) {
|
|
64
|
+
console.log('请求返回不为空---', error)
|
|
64
65
|
if (error.response.status === 401) {
|
|
65
66
|
// LoginException(401)
|
|
66
67
|
// 清除sessionStorage中的jwt,否则无法转到login页面
|
|
@@ -129,14 +130,15 @@ service.interceptors.response.use(
|
|
|
129
130
|
return Promise.reject(error)
|
|
130
131
|
}
|
|
131
132
|
} else {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
133
|
+
console.log('请求返回空---', error)
|
|
134
|
+
// const errorMsg = getI18n().t('imatrixUIMessage.internalServerError')
|
|
135
|
+
// Message({
|
|
136
|
+
// showClose: true,
|
|
137
|
+
// message: errorMsg,
|
|
138
|
+
// type: 'error',
|
|
139
|
+
// duration: 5 * 1000
|
|
140
|
+
// })
|
|
141
|
+
// return Promise.reject(error)
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
144
|
)
|