Quellcode durchsuchen

Merge branch 'master' of lizhiqi/yongxu-web into master

lizhiqi vor 2 Jahren
Ursprung
Commit
d00167feb1
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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 }));