Replies: 1 comment 2 replies
-
不支持直接使用相对路径,因为这个 image 属性值并没有经过 构建工具进行处理。想要使用相对路径,需要在 markdown 中添加 <script setup>
import imgUrl from './xxx.png'
</script>
<ImageCard :image="imgUrl" /> 另外,使用 绝对路径的图片地址, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
就像是下面的两种用法
markdown原生支持如下的写法
ImageCard是否也可以使用相对路径或者类似的方法来引用图片?我也有尝试让image="public资源",但是效果也不如人意。
Beta Was this translation helpful? Give feedback.
All reactions