소스 검색

薪酬管理

ZaiZai 2 년 전
부모
커밋
3f22b52907
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 6
      src/api/request/httpApi.js

+ 2 - 6
src/api/request/httpApi.js

@@ -20,12 +20,8 @@ const getResData = async (response, error = false) => {
         const {headers, data, config} = response
         const resData = getObjValue(data)
         const httpData = {
-            response,
-            res: data,
-            data: resData?.data,
-            code: resData?.code,
-            msg: resData?.msg,
-            status: response?.status,
+            response, res: data, data: resData?.data,
+            code: resData?.code, msg: resData?.msg, status: response?.status,
             disposition: headers['content-disposition'],
             message: getMsgVal(response), error: error
         }