ghostxbh/uzy-ssm-mall

admin 后台管理无法登陆,登陆不跳转

Closed this issue · 4 comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

前端JS文件原因,未修复

前端JS文件原因,未修复

你好,请问现在修复了吗?想求一个

后台管理系统登录不了

$.ajax({ url: "/mall/admin/login/doLogin", type:"post", data: {"username":username,"password":password}, dataType: "json", async:false, success:function (data) { $("#btn_login").val("登录"); if (data.success) { cookieUtil.setCookie("username", username, 30); window.location.href = "/mall/admin"; window.event.returnValue = false; } else { styleUtil.errorShow($("#txt_error_msg"), "用户名或密码错误"); } }, beforeSend:function () { $("#btn_login").val("登录中..."); }, error:function (data) { } });
将src/main/webapp/static/js/admin/admin_login.js 中ajax中的代码替换为这一段,就可以正常跳转了