dangsn
2024-12-30 b4323fbf5258f682a10fa76abe3a68d0644c90d4
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/WebIconServiceImpl.java
@@ -71,6 +71,11 @@
                JSONObject jsonObject = jsonArray.getJSONObject(i);
                String iconContent = jsonObject.getString("svg");
                String iconName = jsonObject.getString("name").toLowerCase();
                if(iconContent.contains("<use href")){
                    iconContent = iconContent.replace("svg\"", "svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"");
                    iconContent = iconContent.replace("<use href","<use xlink:href");
                }
                if(nameList.contains(iconName)){
                    PLIcon icon = iconMap.get(iconName);
                    icon.content = iconContent;