zhangjie 4 năm trước cách đây
mục cha
commit
f5e4a0b9c9
2 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 2 2
      src/modules/login/api.js
  2. 2 2
      src/modules/login/views/Login.vue

+ 2 - 2
src/modules/login/api.js

@@ -3,8 +3,8 @@ import { $post, $postParam } from "@/plugins/axios";
 export const login = datas => {
   return $post("/api/admin/common/login", datas);
 };
-export const getSmsCode = mobileNumber => {
-  return $post("/api/admin/common/get_verify_code", { mobileNumber });
+export const getSmsCode = datas => {
+  return $post("/api/admin/common/get_verify_code", datas);
 };
 export const logout = () => {
   return $post("/api/admin/common/logout", {});

+ 2 - 2
src/modules/login/views/Login.vue

@@ -229,13 +229,13 @@ export default {
       this.isFetchingCode = true;
       const data = await getSmsCode({
         loginName: this.loginModel.loginName,
-        password: this.loginModel.password
+        password: Base64(this.loginModel.password)
       }).catch(() => {
         this.isFetchingCode = false;
       });
       if (!data) return;
       this.$message.success(
-        `已向手机号【${data.phone}】成功发送短信,请在2分钟内进行验证!`
+        `已向手机号【${data}】成功发送短信,请在2分钟内进行验证!`
       );
       this.changeContent();
     },