Browse Source

修复后台验证码获取接口地址,源地址为短信验证码接口。

Signed-off-by: scmiot <scmiot@qq.com>
scmiot 2 năm trước cách đây
mục cha
commit
eec0fd43a3
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      src/api/login.js

+ 12 - 0
src/api/login.js

@@ -49,6 +49,18 @@ export function logout() {
 
 // 获取验证码
 export function getCodeImg() {
+  return request({
+    url: '/code',
+    headers: {
+      isToken: false
+    },
+    method: 'get',
+    timeout: 20000
+  })
+}
+
+// 短信验证码
+export function getCodeSms() {
   return request({
     url: '/sms/code',
     headers: {