Pre Merge pull request !455 from AhJindeg/hotfix/icon

pull/455/MERGE
AhJindeg 2024-06-22 06:47:27 +00:00 committed by Gitee
commit dda38edc10
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ const props = defineProps({
const elRef = ref<ElRef>(null) const elRef = ref<ElRef>(null)
const isLocal = computed(() => props.icon.startsWith('svg-icon:')) const isLocal = computed(() => props.icon?.startsWith('svg-icon:'))
const symbolId = computed(() => { const symbolId = computed(() => {
return unref(isLocal) ? `#icon-${props.icon.split('svg-icon:')[1]}` : props.icon return unref(isLocal) ? `#icon-${props.icon.split('svg-icon:')[1]}` : props.icon