Commit cc39be82 by AhJindeg

fix: 馃悶 fix calculation method of isLocal

parent ecc92430
...@@ -22,7 +22,7 @@ const props = defineProps({ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment