From f1ab003667cc2ca48fb1d811cc649ff7e8deb30a Mon Sep 17 00:00:00 2001 From: Lei OT Date: Thu, 7 Aug 2025 17:13:33 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BA=A7=E5=93=81=E5=AE=A1=E6=A0=B8:?= =?UTF-8?q?=20=E4=BB=B7=E6=A0=BC=E5=8E=86=E5=8F=B2:=20=E5=9C=B0=E6=8E=A5?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=20=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/products/Detail/ProductQuotationLogPopover.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/products/Detail/ProductQuotationLogPopover.jsx b/src/views/products/Detail/ProductQuotationLogPopover.jsx index 9991f93..cdbc813 100644 --- a/src/views/products/Detail/ProductQuotationLogPopover.jsx +++ b/src/views/products/Detail/ProductQuotationLogPopover.jsx @@ -5,6 +5,7 @@ import { HT_HOST } from '@/config'; import { fetchJSON } from '@/utils/request'; import { formatGroupSize } from '@/hooks/useProductsSets'; import { isEmpty, isNotEmpty } from '@/utils/commons'; +import { usingStorage } from '@/hooks/usingStorage'; /** * 产品价格日志 @@ -199,6 +200,7 @@ const useLogMethod = (method) => { */ const ProductQuotationLogPopover = ({ method, triggerProps = {}, onOpenChange, ...props }) => { const { travel_agency_id, product_id, price_id, use_year } = props; + const { travelAgencyId } = usingStorage(); const { t } = useTranslation('products'); const [open, setOpen] = useState(false); @@ -211,7 +213,7 @@ const ProductQuotationLogPopover = ({ method, triggerProps = {}, onOpenChange, . const [loading, setLoading] = useState(false); const getData = async () => { setLoading(true); - const { data } = await fetchData({ travel_agency_id, product_id, price_id, use_year }); + const { data } = await fetchData({ travel_agency_id: travel_agency_id || travelAgencyId, product_id, price_id, use_year }); setLogData(data); invokeOpenChange(true); setLoading(false);