Browse Source

fix(api): 更新API

gemercheung 4 years ago
parent
commit
4badc02dee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/staff/setpaswordModal.vue

+ 1 - 1
src/views/staff/setpaswordModal.vue

@@ -75,7 +75,7 @@
       }
       async function handSubmit() {
         const { id, password } = await validate();
-        await updatePasswordApi({ id, password: encodeStr(window.btoa(password)) });
+        await updatePasswordApi({ id, newPassword: encodeStr(window.btoa(password)) });
         createMessage.success(t('common.optSuccess'));
         resetFields();
       }