|
@@ -28,10 +28,10 @@ export default class CustomAxiosInstance {
|
|
constructor(
|
|
constructor(
|
|
axiosConfig: AxiosRequestConfig,
|
|
axiosConfig: AxiosRequestConfig,
|
|
backendConfig: Service.BackendResultConfig = {
|
|
backendConfig: Service.BackendResultConfig = {
|
|
- codeKey: 'code',
|
|
|
|
|
|
+ codeKey: 'status',
|
|
dataKey: 'data',
|
|
dataKey: 'data',
|
|
- msgKey: 'message',
|
|
|
|
- successCode: 200
|
|
|
|
|
|
+ msgKey: 'code',
|
|
|
|
+ successCode: true
|
|
}
|
|
}
|
|
) {
|
|
) {
|
|
this.backendConfig = backendConfig;
|
|
this.backendConfig = backendConfig;
|