can't display net picture
Vue version
3.2.25
Link to minimal reproduction
Steps to reproduce
just open it
const data = ref({ imgList:['https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg'], form:{ imgList:['https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg'] } })
What is expected?
show the pictrues
What is actually happening?
can't see the pictrue
System Info
win10(21H2)
chrome/firefox/edge latest
Any additional comments?
I can t reproduce it on SFC Playground but I found the problem to only appear when I put imglist in the second layer like data.form.imgList When I changed to use data.imgList it worked fine 我没办法在 SFC Playground复现,即使我用的是相同的代码. 在我的业务中,图片数组本身是使用data.form.imgList,但始终无法显示图片,在刷新时会看到图片先闪一下,之后就不见了.network中的加载是成功了的. 之后我把变量换成data.imgList,就可以正常显示了
我没办法在 SFC Playground复现,即使我用的是相同的代码. 在我的业务中,图片数组本身是使用data.form.imgList,但始终无法显示图片,在刷新时会看到图片先闪一下,之后就不见了.network中的加载是成功了的. 之后我把变量换成data.imgList,就可以正常显示了
I think you should check if the data.form.imgList
has been changed.
我没办法在 SFC Playground复现,即使我用的是相同的代码. 在我的业务中,图片数组本身是使用data.form.imgList,但始终无法显示图片,在刷新时会看到图片先闪一下,之后就不见了.network中的加载是成功了的. 之后我把变量换成data.imgList,就可以正常显示了
I think you should check if the
data.form.imgList
has been changed. it never changed. I'll try it again when I have time. In fact, I can't reproduce in another project I built new, so I will check whether it is a project configuration problem