Browse Source

密码修改接口改用post

任一存 2 năm trước cách đây
mục cha
commit
f1efacf8d8
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      game/src/api.js

+ 2 - 2
game/src/api.js

@@ -121,9 +121,9 @@ export async function changePassword(newPassword, oldPassword) {
   const pwdNewEncrypted = encodeStr(Base64.encode(newPassword))
   const pwdOldEncrypted = encodeStr(Base64.encode(oldPassword))
   const res = await axios({
-    method: 'get',
+    method: 'post',
     url: `${process.env.VUE_APP_API_PREFIX}/api/cms/game/update/pass`,
-    params: {
+    data: {
       newPassword: pwdNewEncrypted,
       oldPassword: pwdOldEncrypted,
     },