修改打包后svg无法显示问题

This commit is contained in:
GGJ
2025-01-15 10:29:19 +08:00
parent 3ea2c93e43
commit 40c9c5fdad
3 changed files with 10 additions and 11 deletions

View File

@@ -62,21 +62,21 @@ const modeList = [
name: "模拟式模块",
code: "模拟式",
subName: "未启用模拟式检测计划",
img: "/src/assets/images/dashboard/1.svg",
img: new URL('/src/assets/images/dashboard/1.svg', import.meta.url).href,
isActive: true,
},
{
name: "数字式模块",
code: "数字式",
subName: "启用数字检测计划",
img: "/src/assets/images/dashboard/2.svg",
img: new URL('/src/assets/images/dashboard/2.svg', import.meta.url).href,
isActive: false,
},
{
name: "比对式模块",
code: "比对式",
subName: "启用比对式检测计划",
img: "/src/assets/images/dashboard/3.svg",
img: new URL('/src/assets/images/dashboard/3.svg', import.meta.url).href,
isActive: false,
},
];