Browse Source

验证码默认20s超时

RuoYi 3 years ago
parent
commit
57f51249b6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ruoyi-ui/src/api/login.js

+ 2 - 1
ruoyi-ui/src/api/login.js

@@ -49,6 +49,7 @@ export function logout() {
 export function getCodeImg() {
   return request({
     url: '/code',
-    method: 'get'
+    method: 'get',
+    timeout: 20000
   })
 }