浏览代码

Merge branch 'wheng' of wuheng/eas_webadmin into master

wuheng 1 年之前
父节点
当前提交
5aa2f3b462
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/service/request/instance.ts

+ 2 - 2
src/service/request/instance.ts

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