From 9644ad8546c51776824ac046bac9f57e17ac5694 Mon Sep 17 00:00:00 2001
From: 田源 <tianyuan@vci-tech.com>
Date: 星期四, 26 十二月 2024 16:41:40 +0800
Subject: [PATCH] 业务功能模块&&管理功能模块树结构修改为图标库图标以及图标选择修改为新图标库选择 系统菜单图标更改为图标库图标并且设置默认图标
---
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/WebIconServiceImpl.java | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/WebIconServiceImpl.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/WebIconServiceImpl.java
index 7e9ddda..c6d966d 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/WebIconServiceImpl.java
+++ b/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;
--
Gitblit v1.10.0