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