Преглед изворни кода

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

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

@@ -50,6 +50,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: {
       isToken: false