@wzyjs/hooks 0.0.26 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,6 +32,6 @@ export const useRequestPro = (reqPromise, userOptions) => {
32
32
  const options = Object.assign(defaultOptions, omit(userOptions, ['onSuccess', 'onError']));
33
33
  // 取出 data 里的 data
34
34
  const state = useRequest(reqPromise, options);
35
- state.data = state.data?.data || state.data;
35
+ state.data = state.data?.data;
36
36
  return state;
37
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wzyjs/hooks",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "description",
5
5
  "author": "wzy",
6
6
  "license": "ISC",
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "dependencies": {
17
17
  "@types/react": "^18.0.28",
18
- "@wzyjs/utils": "^0.0.26",
18
+ "@wzyjs/utils": "^0.0.27",
19
19
  "ahooks": "^3.7.3",
20
20
  "antd": "^5.1.0",
21
21
  "react-use": "^17.4.0"
@@ -34,5 +34,5 @@
34
34
  "type": "git",
35
35
  "url": "https://gitee.com/wang-zhenyu/work.git"
36
36
  },
37
- "gitHead": "a36becc39314fcf9fe22b6995a38ff85126e986d"
37
+ "gitHead": "df22fdc32eef4bfe3a8920a1c3d048f5713bda8e"
38
38
  }