Browse Source

退出后返回首页

limeng 1 tháng trước cách đây
mục cha
commit
c13c128608

+ 1 - 1
src/main/java/com/sooka/module/web/cms/IndexController.java

@@ -117,7 +117,7 @@ public class IndexController {
     @GetMapping("/exit")
     @GetMapping("/exit")
     public ModelAndView exit(HttpServletRequest request){
     public ModelAndView exit(HttpServletRequest request){
         request.getSession().removeAttribute(LOGIN_USER);
         request.getSession().removeAttribute(LOGIN_USER);
-        return index(null);
+        return new ModelAndView( "forward:/"+sitePrefix+"/4");
     }
     }
 
 
     @GetMapping("/register")
     @GetMapping("/register")