优化全局提醒
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user