This commit is contained in:
qiuchenfan 2025-11-14 19:18:12 +08:00
parent 817f57bc33
commit d7be705d20
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ export function meta() {
} }
export default function Weather() { export default function Weather() {
const { currentWeather, isLoading, error, setError } = useWeatherStore()
const { currentWeather, isLoading, error, setError } = useWeatherStore() const { currentWeather, isLoading, error, setError } = useWeatherStore()
useEffect(() => { useEffect(() => {
if (error) { if (error) {
@ -24,7 +24,7 @@ export default function Weather() {
setError("") setError("")
} }
}, [error, setError]) }, [error, setError])
}, [error, setError])
return ( return (
<div className="flex flex-col items-center justify-center h-screen"> <div className="flex flex-col items-center justify-center h-screen">