Skip to content

Commit 0895f9f

Browse files
YunaiVgitee-org
authored andcommitted
!455 fix: fix calculation method of isLocal
Merge pull request !455 from AhJindeg/hotfix/icon
2 parents 210c4d4 + cc39be8 commit 0895f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Icon/src/Icon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const props = defineProps({
2222
2323
const elRef = ref<ElRef>(null)
2424
25-
const isLocal = computed(() => props.icon.startsWith('svg-icon:'))
25+
const isLocal = computed(() => props.icon?.startsWith('svg-icon:'))
2626
2727
const symbolId = computed(() => {
2828
return unref(isLocal) ? `#icon-${props.icon.split('svg-icon:')[1]}` : props.icon

0 commit comments

Comments
 (0)