zy-react-library 1.0.112 → 1.0.113

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.
@@ -46,13 +46,7 @@ function HiddenInfo(props) {
46
46
  const query = useGetUrlQuery();
47
47
  const { loading: downloadFileLoading, downloadFile } = useDownloadFile();
48
48
 
49
- const getData = async () => {
50
- request(`/hidden/hidden/${id || query[idKey]}`, "get").then((res) => {
51
- setInfo(res.data);
52
- setLoading(false);
53
- onGetData?.(res.data);
54
- });
55
-
49
+ const getFileData = async (info) => {
56
50
  const hiddenImageFiles = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["3"], eqForeignKey: hiddenId || query[hiddenIdKey] });
57
51
  setHiddenImageFiles(hiddenImageFiles);
58
52
  const hiddenVideoFiles = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["102"], eqForeignKey: hiddenId || query[hiddenIdKey] });
@@ -78,6 +72,15 @@ function HiddenInfo(props) {
78
72
  const acceptImageFiles = await getFile({ eqType: UPLOAD_FILE_TYPE_ENUM["5"], eqForeignKey: hiddenId || query[hiddenIdKey] });
79
73
  setAcceptImageFiles(acceptImageFiles);
80
74
  }
75
+ }
76
+
77
+ const getData = async () => {
78
+ request(`/hidden/hidden/${id || query[idKey]}`, "get").then((res) => {
79
+ setInfo(res.data);
80
+ getFileData(res.data);
81
+ setLoading(false);
82
+ onGetData?.(res.data);
83
+ });
81
84
  };
82
85
  useEffect(() => {
83
86
  getData();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.112",
4
+ "version": "1.0.113",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",