瀏覽代碼

bugfix----index路由跳转问题

Raod 3 年之前
父節點
當前提交
fe9a137b78

+ 5 - 0
report-core/src/main/java/com/anjiplus/template/gaea/business/filter/TokenFilter.java

@@ -85,7 +85,12 @@ public class TokenFilter implements Filter {
             return;
         }
 
+
         if (SLASH.equals(uri) || SLASH.concat(BusinessConstant.SLASH).equals(uri)) {
+            if (BusinessConstant.SLASH.equals(uri)) {
+                response.sendRedirect("/index.html");
+                return;
+            }
             response.sendRedirect(SLASH + "/index.html");
             return;
         }