Browse Source

fix 修复 外链带端口出现的异常

疯狂的狮子Li 1 year ago
parent
commit
8d0c06b5bf

+ 2 - 2
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java

@@ -437,7 +437,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
      * 内链域名特殊字符替换
      */
     public String innerLinkReplaceEach(String path) {
-        return StringUtils.replaceEach(path, new String[]{Constants.HTTP, Constants.HTTPS, Constants.WWW, "."},
-            new String[]{"", "", "", "/"});
+        return StringUtils.replaceEach(path, new String[]{Constants.HTTP, Constants.HTTPS, Constants.WWW, ".", ":"},
+            new String[]{"", "", "", "/", "/"});
     }
 }