diff --git a/client/src/components/Icon.vue b/client/src/components/Icon.vue index 4d4e44b..b81a5c6 100644 --- a/client/src/components/Icon.vue +++ b/client/src/components/Icon.vue @@ -1,15 +1,7 @@ - - \ No newline at end of file + +const iconComponent = computed(() => { + const iconName = toPascalCase(props.name) as keyof typeof LucideIcons + const Icon = LucideIcons[iconName] || LucideIcons.AlertCircle + return () => h(Icon as any, { + class: props.className, + style: props.style, + size: iconSize.value + } as LucideProps) +}) + + + \ No newline at end of file diff --git a/client/src/components/StarBackground.vue b/client/src/components/StarBackground.vue index 4696321..295afa9 100644 --- a/client/src/components/StarBackground.vue +++ b/client/src/components/StarBackground.vue @@ -243,7 +243,7 @@ const handleClick = (e: MouseEvent) => { } // 3. 点击触发流星 - createMeteor(true) + createMeteor() } const handleResize = () => { diff --git a/client/src/pages/BlogDetail.vue b/client/src/pages/BlogDetail.vue index 33fa685..8d4214a 100644 --- a/client/src/pages/BlogDetail.vue +++ b/client/src/pages/BlogDetail.vue @@ -1,6 +1,6 @@