新建store存储地区和职业picker选项
This commit is contained in:
@@ -10,9 +10,10 @@ import { TennisMatch } from "@/../types/list/types";
|
||||
import { withAuth, NTRPTestEntryCard } from "@/components";
|
||||
import { EvaluateScene } from "@/store/evaluateStore";
|
||||
import { useUserInfo } from "@/store/userStore";
|
||||
import { UserInfoType } from "@/services/userService";
|
||||
import { usePickerOption } from "@/store/pickerOptionsStore";
|
||||
|
||||
const MyselfPage: React.FC = () => {
|
||||
const pickerOption = usePickerOption();
|
||||
// 获取页面参数
|
||||
const instance = Taro.getCurrentInstance();
|
||||
const user_id = instance.router?.params?.userid || "";
|
||||
@@ -64,11 +65,10 @@ const MyselfPage: React.FC = () => {
|
||||
// }
|
||||
// };
|
||||
|
||||
// useEffect(() => {
|
||||
// if (user_info.id) {
|
||||
// load_game_data(); // 在 user_info 更新后调用
|
||||
// }
|
||||
// }, [user_info]);
|
||||
useEffect(() => {
|
||||
pickerOption.getCities();
|
||||
pickerOption.getProfessions();
|
||||
}, []);
|
||||
|
||||
// 页面加载时获取数据
|
||||
// useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user