瀏覽代碼

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

Signed-off-by: scmiot <scmiot@qq.com>
scmiot 2 年之前
父節點
當前提交
eec0fd43a3
共有 1 個文件被更改,包括 12 次插入0 次删除
  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: {