优化全局提醒

This commit is contained in:
mmc
2026-05-15 16:28:42 +08:00
parent b18d293268
commit 451d90894a
4 changed files with 49 additions and 3 deletions

View File

@@ -31,6 +31,7 @@ import { RootState, useAppDispatch } from '../store';
import { setUserInfo } from '../store/userSlice';
import { getUserProfile, updateUserProfile, updateUserPwd, uploadAvatar } from '../api/user';
import envConfig from '../../env';
import utils from '../lib/utils';
const { TabPane } = Tabs;
const { Title } = Typography;
@@ -42,6 +43,7 @@ const Profile: React.FC = () => {
const dispatch = useAppDispatch();
const [form] = Form.useForm();
const [pwdForm] = Form.useForm();
const message = utils.message; // 使用全局 message
const fetchProfile = async () => {
try {