From 370992d0e8aa292704ebb087635350d591cbd5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=92=AC=E8=BD=AE=E7=8C=AB?= <10928033@qq.com> Date: Mon, 13 Feb 2023 18:10:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=92=E4=BB=B6=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E5=BC=95=E5=85=A5=E8=A6=86=E7=9B=96=E6=BA=90=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?svg=E8=A7=A3=E6=9E=90=E5=99=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index b4a1f6e..4f253cb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -23,7 +23,8 @@ export default defineConfig(({ mode }) => { // 指定symbolId格式 symbolId: 'svg-[name]', // 禁用压缩 否则想要修改无状态组件的stroke或者fill会影响到预设样式 例如stroke-width - svgoOptions: false + svgoOptions: false, + customDomId: '__webtopo__svgedit__icons__dom__' }) ], resolve: {