From 46fbc9db0bce7762b4cce441b853dc13f4429df7 Mon Sep 17 00:00:00 2001 From: lau <1807121535@qq.com> Date: Mon, 8 Jun 2026 18:08:42 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20SvgLcon=E7=BB=84?= =?UTF-8?q?=E4=BB=B6iconClass=E5=BC=82=E5=B8=B8=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=E7=99=BD=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SvgIcon/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue index 6aeaec57..bb23285e 100644 --- a/src/components/SvgIcon/index.vue +++ b/src/components/SvgIcon/index.vue @@ -15,8 +15,8 @@ const props = defineProps({ color: propTypes.string.def(''), size: propTypes.string.def('') }); -const normalizedIcon = computed(() => props.iconClass.replace(/^i-/, '')); -const isIconify = computed(() => normalizedIcon.value.includes(':')); +const normalizedIcon = computed(() => props.iconClass?.replace(/^i-/, '')); +const isIconify = computed(() => normalizedIcon.value?.includes(':')); const iconName = computed(() => `#icon-${normalizedIcon.value}`); const svgClass = computed(() => { if (props.className) {