From 504ed6351cca2e8934bef5a3eae08e4aa9f97464 Mon Sep 17 00:00:00 2001 From: ly19960718 <1622779752@qq.com> Date: Thu, 15 Apr 2021 14:57:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E6=A0=87=E5=BA=93=E6=96=B0=E5=A2=9Ewe?= =?UTF-8?q?b=E9=A1=B5=E9=9D=A2=E6=A0=91=E5=BD=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tenlion/twoduty/controller/route/indexWebController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/tenlion/twoduty/controller/route/indexWebController.java b/src/main/java/com/tenlion/twoduty/controller/route/indexWebController.java index d6d9cfe..726fde7 100644 --- a/src/main/java/com/tenlion/twoduty/controller/route/indexWebController.java +++ b/src/main/java/com/tenlion/twoduty/controller/route/indexWebController.java @@ -30,7 +30,8 @@ public class indexWebController extends DefaultBaseController { @GetMapping("indexweb") public ModelAndView indexweb(){ ModelAndView mv = new ModelAndView("index"); - mv.addObject("userName",securityComponent.getCurrentUserIdInfo().getUserNameValue()); + mv.addObject("userName",securityComponent.getCurrentUser().getUserName()); + mv.addObject("userUserName",securityComponent.getCurrentUser().getUserUsername()); return mv; }