diff --git a/src/components/BackTop.astro b/src/components/BackTop.astro index f3c35a2..f8a9a53 100644 --- a/src/components/BackTop.astro +++ b/src/components/BackTop.astro @@ -1,5 +1,5 @@ --- - +// 后面的 ?url 是 一个导入查询(import query),表示:不要把 SVG 当作组件或源码处理,而是返回这个资源的 URL 字符串。 import backTopIcon from "@/assets/icon/back-top.svg?url"; ---