mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-09 08:52:41 +08:00
!455 fix: fix calculation method of isLocal
Merge pull request !455 from AhJindeg/hotfix/icon
This commit is contained in:
commit
0895f9ffcb
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user