ソースを参照

修改接口返回

shylock 2 年 前
コミット
f15c43c173
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/components/RightContent/updatePassword.tsx

+ 1 - 1
src/components/RightContent/updatePassword.tsx

@@ -31,7 +31,7 @@ const UpdatePassword = (props: any) => {
         new_password: md5(values.new_password),
       };
       updatePwd(formData).then((res: any) => {
-        if (res.status === 'OK') {
+        if (res.code === 0) {
           message.success('密码更新成功!');
           console.log(initialState);
           setInitialState((s) => ({ ...s, currentUser: undefined }));