越权bug修改

This commit is contained in:
haozq 2024-07-25 10:44:45 +08:00
parent c8d3f54f40
commit 262b553b79
2 changed files with 2 additions and 3 deletions

View File

@ -32,7 +32,6 @@ public class SysMenuServiceImpl implements SysMenuService {
List<SysMenuVo> list=new ArrayList<>();
try{
list= dao.getUserMenuList(type,roleId);
list=dao.getMenuName(url);
}catch (Exception e){
log.error(e.toString(),e);
}

View File

@ -35,10 +35,10 @@ function error(xhr) {
icon: 5,
move: false,
cancel: function (index, layero) {
location.href = '/zhly/login.html';
location.href = '/szgqj/login.html';
}
}, function () {
location.href = '/zhly/login.html';
location.href = '/szgqj/login.html';
})
} else if (code == 403) {
console.log("未授权:" + message);