|
@@ -85,8 +85,9 @@ service.interceptors.response.use(
|
|
|
return response
|
|
|
}
|
|
|
if (res.code !== 200) {
|
|
|
+ // '后端异常:' +
|
|
|
Message({
|
|
|
- message: '后端异常:' + res.message || 'Error',
|
|
|
+ message: res.message || 'Error',
|
|
|
type: 'error',
|
|
|
duration: 5 * 1000
|
|
|
})
|
|
@@ -103,8 +104,9 @@ service.interceptors.response.use(
|
|
|
loadingInstance && loadingInstance.close()
|
|
|
const { message } = error.response.data
|
|
|
console.log('err' + error) // for debug
|
|
|
+ // '后端异常:' +
|
|
|
Message({
|
|
|
- message: '后端异常:' + message,
|
|
|
+ message: message,
|
|
|
type: 'error',
|
|
|
duration: 5 * 1000
|
|
|
})
|