调整字典及发布

This commit is contained in:
筱野
2025-09-18 22:26:55 +08:00
parent c096d265ab
commit 81898de75d
9 changed files with 145 additions and 74 deletions

View File

@@ -12,6 +12,7 @@ import ListContainer from "@/container/listContainer";
import DistanceQuickFilter from "@/components/DistanceQuickFilter";
import { withAuth } from "@/components";
import { updateUserLocation } from "@/services/userService";
import { useDictionaryStore } from "@/store/dictionaryStore";
const ListPage = () => {
@@ -227,6 +228,20 @@ const ListPage = () => {
});
};
// 初始化字典数据
const initDictionaryData = async () => {
try {
const { fetchDictionary } = useDictionaryStore.getState();
await fetchDictionary();
} catch (error) {
console.error("初始化字典数据失败:", error);
}
}
useEffect(() => {
initDictionaryData()
}, []);
return (
<>
{/* 自定义导航 */}