From cc39be8207d29d43531d93d1f0168f45f75190f7 Mon Sep 17 00:00:00 2001 From: AhJindeg Date: Thu, 30 May 2024 14:48:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9E=20fix=20calculation=20metho?= =?UTF-8?q?d=20of=20isLocal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Icon/src/Icon.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Icon/src/Icon.vue b/src/components/Icon/src/Icon.vue index 4246539f..a90bb37e 100644 --- a/src/components/Icon/src/Icon.vue +++ b/src/components/Icon/src/Icon.vue @@ -22,7 +22,7 @@ const props = defineProps({ const elRef = ref(null) -const isLocal = computed(() => props.icon.startsWith('svg-icon:')) +const isLocal = computed(() => props.icon?.startsWith('svg-icon:')) const symbolId = computed(() => { return unref(isLocal) ? `#icon-${props.icon.split('svg-icon:')[1]}` : props.icon