diff --git a/src/component/Canvas/SvgIcon/index.vue b/src/component/Canvas/SvgIcon/index.vue index bdb09126..009feea6 100644 --- a/src/component/Canvas/SvgIcon/index.vue +++ b/src/component/Canvas/SvgIcon/index.vue @@ -1,16 +1,12 @@ @@ -30,12 +26,7 @@ const props = defineProps({ default: 16, }, }); -const iconName = computed(() => { - console.log(require(`@/assets/icons/${props.name}.svg`)) - return require(`@/assets/icons/${props.name}.svg`) - return imgUrl -}); -// const iconName = computed(() => `#icon-${props.name}`); +const iconName = computed(() => `#icon-${props.name}`); const svgClass = computed(() => { if (props.name) return `svg-icon icon-${props.name}`; return "svg-icon";