From 1c354cc743cf05c80b662879697b3ee82bb06d6a Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 28 Oct 2025 15:07:41 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20reservation=20=E5=9C=B0=E6=8E=A5?= =?UTF-8?q?=E7=9A=84=E5=AF=BC=E6=B8=B8=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reservation/Newest.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/reservation/Newest.jsx b/src/views/reservation/Newest.jsx index 24302b3..2a2d63f 100644 --- a/src/views/reservation/Newest.jsx +++ b/src/views/reservation/Newest.jsx @@ -97,12 +97,13 @@ function Newest() { const [dataLoading, setDataLoading] = useState(false) const [guideSelectOptions, setGuideSelectOptions] = useState([]) - const { travelAgencyId } = usingStorage() + const { travelAgencyId: myAgencyId } = usingStorage() const isPermitted = useAuthStore((state) => state.isPermitted) const formValuesToSub = useFormStore((state) => state.formValuesToSub) const [fetchAgencyGuideList, fetchReservationList, reservationList, reservationPage, cityList, selectReservation, getCityListByReservationId, setupCityGuide, updateReservationGuide] = useReservationStore((state) => [state.fetchAgencyGuideList, state.fetchReservationList, state.reservationList, state.reservationPage, state.cityList, state.selectReservation, state.getCityListByReservationId, state.setupCityGuide, state.updateReservationGuide]) + const travelAgencyId = formValuesToSub.agency || myAgencyId; const { notification } = App.useApp()