szld-libs 0.2.27 → 0.2.28

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.
@@ -3,12 +3,10 @@ import { SyncOutlined } from "@ant-design/icons";
3
3
  import { useRequest } from "ahooks";
4
4
  import { Button } from "antd";
5
5
  import _ from "lodash";
6
- import { useMemo } from "react";
7
- import { formatResponse } from "../utils/index";
8
6
  function useCaptcha(props) {
9
7
  const { imgKey = "Img" } = props;
10
8
  const {
11
- data: _data,
9
+ data,
12
10
  loading,
13
11
  error,
14
12
  refresh
@@ -17,7 +15,6 @@ function useCaptcha(props) {
17
15
  ready: true,
18
16
  retryCount: 3
19
17
  });
20
- const data = useMemo(() => formatResponse(_data), [_data]);
21
18
  const renderCaptcha = () => {
22
19
  if (error) {
23
20
  return /* @__PURE__ */ jsx(
@@ -4,12 +4,10 @@ const icons = require("@ant-design/icons");
4
4
  const ahooks = require("ahooks");
5
5
  const antd = require("antd");
6
6
  const _ = require("lodash");
7
- const react = require("react");
8
- const index = require("../utils/index");
9
7
  function useCaptcha(props) {
10
8
  const { imgKey = "Img" } = props;
11
9
  const {
12
- data: _data,
10
+ data,
13
11
  loading,
14
12
  error,
15
13
  refresh
@@ -18,7 +16,6 @@ function useCaptcha(props) {
18
16
  ready: true,
19
17
  retryCount: 3
20
18
  });
21
- const data = react.useMemo(() => index.formatResponse(_data), [_data]);
22
19
  const renderCaptcha = () => {
23
20
  if (error) {
24
21
  return /* @__PURE__ */ jsxRuntime.jsx(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.2.27",
4
+ "version": "0.2.28",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",