From 654f56af6afae176d0405dcb9a7852d04efa507a Mon Sep 17 00:00:00 2001 From: lyp Date: Thu, 5 Jun 2025 15:39:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/route/CopyrightGgoods/CopyrightGgoods.tsx | 3 ++- src/route/ProductRelease/ProductRelease.tsx | 1 + src/route/TradingGoods/TradingGoods.tsx | 1 + src/route/TransactionOrder/TransactionOrder.tsx | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/route/CopyrightGgoods/CopyrightGgoods.tsx b/src/route/CopyrightGgoods/CopyrightGgoods.tsx index 9c5739c..1b58afe 100644 --- a/src/route/CopyrightGgoods/CopyrightGgoods.tsx +++ b/src/route/CopyrightGgoods/CopyrightGgoods.tsx @@ -112,6 +112,7 @@ export default function CopyrightGgoods() { // console.log('呵呵', goodsFlag); // console.log('嘻嘻', state.goodsFlag); // return + setData([]) try { setLoading(true) const res: any = await buyGoodsList({ @@ -436,7 +437,7 @@ export default function CopyrightGgoods() { { - console.log(page) + // console.log(page) setPage(page) }} /> diff --git a/src/route/ProductRelease/ProductRelease.tsx b/src/route/ProductRelease/ProductRelease.tsx index b28b19c..477f7f3 100644 --- a/src/route/ProductRelease/ProductRelease.tsx +++ b/src/route/ProductRelease/ProductRelease.tsx @@ -253,6 +253,7 @@ export default function ProductRelease() { const [selectTypeArray, setSelectTypeArray] = useState([]) // 选择的软著类型 const getGoodsDate = async (page: number) => { + setData([]) try { setLoading(true) const res: any = await getGoodsList({ diff --git a/src/route/TradingGoods/TradingGoods.tsx b/src/route/TradingGoods/TradingGoods.tsx index 586437a..35e9c44 100644 --- a/src/route/TradingGoods/TradingGoods.tsx +++ b/src/route/TradingGoods/TradingGoods.tsx @@ -172,6 +172,7 @@ export default function TradingGoods() { const [buyInfoModal, setBuyInfoModal] = useState(false) // 填写购买人信息弹窗 const getDataList = async (page: number) => { + setData([]) try { setLoading(true) const res: any = await getBuyOrderList({ diff --git a/src/route/TransactionOrder/TransactionOrder.tsx b/src/route/TransactionOrder/TransactionOrder.tsx index f5ceafb..8362d83 100644 --- a/src/route/TransactionOrder/TransactionOrder.tsx +++ b/src/route/TransactionOrder/TransactionOrder.tsx @@ -62,6 +62,7 @@ export default function TransactionOrder() { const [data, setData] = useState([]); // 表格数据 const getDataList = async (page: number) => { + setData([]) try { setLoading(true) const res: any = await getSellOrderList({