Browse Source

update login.js, 登入成功后跳转到 /

reghao 6 months ago
parent
commit
6d7ca9a76a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mgr/src/main/resources/static/js/login.js

+ 1 - 1
mgr/src/main/resources/static/js/login.js

@@ -32,7 +32,7 @@ layui.use(['element', 'layer'], function () {
                 // 处理表单提交成功后的响应
                 if (resp.code === 0) {
                     let redirectPath = resp.data
-                    window.location.replace(redirectPath)
+                    window.location.replace('/')
                 } else {
                     $.fn.Messager(resp)
                 }