Skip to content

Commit 4a7a8af

Browse files
committed
chore: des
1 parent 4407140 commit 4a7a8af

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"dependencies": {
2424
"@ant-design/icons": "^5.3.4",
2525
"@babel/runtime": "^7.24.0",
26+
"@wanp/use-swr-data": "^1.0.0",
2627
"antd": "^5.15.3",
2728
"axios": "^1.6.8",
2829
"classnames": "^2.5.1",
@@ -33,7 +34,6 @@
3334
"react-dom": "^18.2.0",
3435
"react-router-dom": "^6.22.3",
3536
"swr": "^2.3.3",
36-
"use-swr-data": "^0.0.3",
3737
"zustand": "^5.0.5"
3838
},
3939
"devDependencies": {

src/components/LazyLoadSelect.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { ResponseList } from "&src/types/api";
2+
import type { AnyObject, PagingSwrProps } from "@wanp/use-swr-data";
23
import type { SelectProps } from "antd";
3-
import type { AnyObject, PagingSwrProps } from "use-swr-data";
44

5+
import useSwrData from "@wanp/use-swr-data";
56
import { Select, Spin } from "antd";
67
import debounce from "lodash/debounce";
78
import { useEffect, useMemo, useState } from "react";
8-
import useSwrData from "use-swr-data";
99

1010
interface LazyLoadSelectProps<P extends AnyObject, R extends ResponseList<any>> {
1111
value?: SelectProps["value"];

src/pages/system/setting/company.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { companyService } from "&src/api/setting";
33
import FormFilter from "&src/components/FormFilter";
44
import FormModal from "&src/components/FormModal";
55

6+
import useSwrData from "@wanp/use-swr-data";
67
import { Button, Card, message, Table } from "antd";
78
import { useState } from "react";
8-
import useSwrData from "use-swr-data";
99

1010
const filterInfo: FormItem[] = [{ name: "projectName", type: "input", label: "厂商名称" }];
1111
const itemInfo: FormItem[] = [

0 commit comments

Comments
 (0)