Commit 04314190 by fsn

修改跳转到用户详情页面接口,不用传用户id

parent 946dfa76
......@@ -89,7 +89,7 @@ public class UserMgrController extends BaseController {
}
/**
* 跳转到查看管理员列表的页面
* 跳转到编辑管理员页面
*/
@RequestMapping("/user_edit/{userId}")
public String userEdit(@PathVariable Integer userId, Model model) {
......@@ -107,8 +107,9 @@ public class UserMgrController extends BaseController {
/**
* 跳转到查看用户详情页面
*/
@RequestMapping("/user_info/{userId}")
public String userInfo(@PathVariable Integer userId, Model model) {
@RequestMapping("/user_info")
public String userInfo(Model model) {
Integer userId = ShiroKit.getUser().getId();
if (ToolUtil.isEmpty(userId)) {
throw new BussinessException(BizExceptionEnum.REQUEST_NULL);
}
......
......@@ -19,7 +19,7 @@
</span>
</a>
<ul class="dropdown-menu animated fadeInRight m-t-xs">
<li><a class="J_menuItem" href="${ctxPath}/mgr/user_info/${shiro.getUser().id}">个人资料</a></li>
<li><a class="J_menuItem" href="${ctxPath}/mgr/user_info">个人资料</a></li>
<li><a class="J_menuItem" href="${ctxPath}/mgr/user_chpwd">修改密码</a></li>
<li class="divider"></li>
<li><a href="${ctxPath}/logout">安全退出</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment