Ver código fonte

退出后返回首页

limeng 1 mês atrás
pai
commit
c13c128608

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

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