|
@@ -66,7 +66,7 @@ service.interceptors.response.use(
|
|
const res = response.data
|
|
const res = response.data
|
|
|
|
|
|
// if the custom code is not 20000, it is judged as an error.
|
|
// if the custom code is not 20000, it is judged as an error.
|
|
- if (res.code !== 0) {
|
|
|
|
|
|
+ if (res.code != 0) {
|
|
Message({
|
|
Message({
|
|
message: res.message || 'Error',
|
|
message: res.message || 'Error',
|
|
type: 'error',
|
|
type: 'error',
|