From e2e3042f50b989af357dea101d466213bcc401cd Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 28 Oct 2025 15:48:49 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reservation/Newest.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/views/reservation/Newest.jsx b/src/views/reservation/Newest.jsx index 06b1759..07ee4b6 100644 --- a/src/views/reservation/Newest.jsx +++ b/src/views/reservation/Newest.jsx @@ -7,7 +7,6 @@ import { useTranslation } from 'react-i18next' import useFormStore from '@/stores/Form' import useReservationStore from '@/stores/Reservation' import SearchForm from '@/components/SearchForm' -import { usingStorage } from '@/hooks/usingStorage' const { Title } = Typography @@ -95,12 +94,11 @@ function Newest() { const [dataLoading, setDataLoading] = useState(false) const [guideSelectOptions, setGuideSelectOptions] = useState([]) - const { travelAgencyId: myAgencyId } = usingStorage() 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 travelAgencyId = formValuesToSub.agency; const { notification } = App.useApp()