From 23d0bedd82d0503af7d7625739f59bbc2a9e214d Mon Sep 17 00:00:00 2001 From: qiuchenfan <2035024011@qq.com> Date: Mon, 17 Nov 2025 19:10:41 +0800 Subject: [PATCH] 1112 --- app/components/WeatherDetailsGird.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/WeatherDetailsGird.tsx b/app/components/WeatherDetailsGird.tsx index 6765d7e..30bf498 100644 --- a/app/components/WeatherDetailsGird.tsx +++ b/app/components/WeatherDetailsGird.tsx @@ -1,4 +1,5 @@ import { Cloud, Droplets, Gauge, ThermometerSun, Wind } from "lucide-react"; +import { useWeatherStore } from "@/store/weatherStore"; interface WeatherDetailsGridProps { icon: React.ReactNode; @@ -25,7 +26,7 @@ function WeatherInfoItem({ icon, label, value, subtitle }: WeatherDetailsGridPro } export function WeatherDetailsGrid(){ - const currentWeather = useWeatherState(); + const {currentWeather} = useWeatherStore(); if(!currentWeather) return null; return(
@@ -42,7 +43,7 @@ export function WeatherDetailsGrid(){ 降水量:\ - {currentWeather.current.precipitation} mm + {currentWeather.current.precip} mm