#
luxiaotao1123
2024-02-28 b016d1eb02dd09fd1ffcd24e4e6ddee72fd1b3d6
zy-asrs-flow/src/pages/account/setting/components/security.jsx
@@ -7,12 +7,13 @@
import { useModel } from '@umijs/max';
import Http from '@/utils/http';
const resetPwd = async (val) => {
const resetPwd = async (val, form) => {
  const hide = message.loading('正在修改');
  try {
    const resp = await Http.doPost('api/user/reset/pwd', val);
    if (resp.code === 200) {
      message.success('修改成功');
      form.resetFields();
      return true;
    } else {
      message.error(resp.msg);
@@ -32,7 +33,7 @@
  const { currentUser } = initialState || {};
  const handleFinish = (values) => {
    resetPwd({...values, id: currentUser.id});
    resetPwd({...values, id: currentUser.id}, form);
  }
  return (