摘要: 首先给图片地址绑定变量 <template> <img :src="imgUrl"> </template> 在script中设置变量 <script> //方法1.直接将图片引入为模块 require imgUrl from "../assets/test.png" //方法2.将imgUrl放在 阅读全文
posted @ 2020-05-28 09:41 徐12 阅读(10709) 评论(1) 推荐(0) 编辑