Browse Source

验证码默认20s超时

RuoYi 3 years ago
parent
commit
134835c870

+ 2 - 1
ruoyi-common/src/main/java/com/ruoyi/common/filter/XssHttpServletRequestWrapper.java

@@ -80,7 +80,8 @@ public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper
             }
 
             @Override
-            public int available() throws IOException {
+            public int available() throws IOException
+            {
                 return jsonBytes.length;
             }
 

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

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