imatrix-ui 2.8.7 → 2.8.8-tmp1

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.
@@ -202,3 +202,7 @@ export function getOrignUrl() {
202
202
  }
203
203
  return orignUrl
204
204
  }
205
+
206
+ export function isPromise(p) {
207
+ return p && Object.prototype.toString.call(p) === '[object Promise]'
208
+ }
@@ -112,6 +112,10 @@ service.interceptors.response.use(
112
112
  }
113
113
  console.log(message)
114
114
  let errorMsg = getI18n().t('imatrixUIMessage.internalServerError')
115
+ if (message && message !== 'Internal Server Error') {
116
+ // 表示显示原始异常
117
+ errorMsg = message
118
+ }
115
119
  if (message && (message === 'gateway.timeout' || message === 'gateway.callFailed')) {
116
120
  // 网关的fallback返回的异常信息“接口调用超时”、“接口调用失败”
117
121
  errorMsg = getI18n().t(message)