diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/login.js b/ruoyi-admin/src/main/resources/static/ruoyi/login.js index 262d7946b..19a6f0df3 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/login.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/login.js @@ -33,11 +33,11 @@ function login() { if (r.code == web_status.SUCCESS) { location.href = ctx + 'index'; } else { - $.modal.closeLoading(); $('.imgcode').click(); $(".code").val(""); $.modal.msg(r.msg); } + $.modal.closeLoading(); } }); }