添加内容过滤功能
This commit is contained in:
@@ -18,7 +18,7 @@ import {
|
||||
useProfessions,
|
||||
useNtrpLevels,
|
||||
} from "@/store/pickerOptionsStore";
|
||||
import { formatNtrpDisplay } from "@/utils/helper";
|
||||
import { formatNtrpDisplay, getBackendErrorMsg } from "@/utils/helper";
|
||||
import { useGlobalState } from "@/store/global";
|
||||
|
||||
// 用户信息接口
|
||||
@@ -252,8 +252,8 @@ const UserInfoCardComponent: React.FC<UserInfoCardProps> = ({
|
||||
} catch (error) {
|
||||
console.warn("保存失败:", error);
|
||||
Taro.showToast({
|
||||
title: "保存失败",
|
||||
icon: "error",
|
||||
title: getBackendErrorMsg(error, "保存失败"),
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -295,8 +295,8 @@ const UserInfoCardComponent: React.FC<UserInfoCardProps> = ({
|
||||
} catch (error) {
|
||||
console.warn("保存失败:", error);
|
||||
Taro.showToast({
|
||||
title: "保存失败",
|
||||
icon: "error",
|
||||
title: getBackendErrorMsg(error, "保存失败"),
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user