From 4a1bae90d5d73be8e4e284c796966e36361763d6 Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Fri, 6 Sep 2024 09:28:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E6=95=88=E5=BC=95?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/stores/Hotel.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/src/stores/Hotel.js b/web/src/stores/Hotel.js index a54fc3c..576d4ef 100644 --- a/web/src/stores/Hotel.js +++ b/web/src/stores/Hotel.js @@ -1,7 +1,6 @@ import { create } from 'zustand' import { devtools } from 'zustand/middleware' -import { fetchJSON, postForm } from '@/utils/request' -import { usingStorage } from '@/hooks/usingStorage' +import { fetchJSON } from '@/utils/request' export const fetchHotelList = async (hotelName, checkinDateString, checkoutDateString) => { const { errcode, data } = await fetchJSON( @@ -20,7 +19,7 @@ export const fetchAvailability = async (hotelId, checkinDateString, checkoutDate } -const useHotelStore = create(devtools((set, get) => ({ +const useHotelStore = create(devtools((set) => ({ selectedHotel: null, hotelList: [],