作者 RuoYi

验证码默认20s超时

@@ -80,7 +80,8 @@ public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper @@ -80,7 +80,8 @@ public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper
80 } 80 }
81 81
82 @Override 82 @Override
83 - public int available() throws IOException { 83 + public int available() throws IOException
  84 + {
84 return jsonBytes.length; 85 return jsonBytes.length;
85 } 86 }
86 87
@@ -47,6 +47,7 @@ export function logout() { @@ -47,6 +47,7 @@ export function logout() {
47 export function getCodeImg() { 47 export function getCodeImg() {
48 return request({ 48 return request({
49 url: '/captchaImage', 49 url: '/captchaImage',
50 - method: 'get' 50 + method: 'get',
  51 + timeout: 20000
51 }) 52 })
52 } 53 }