javascript - vue.js retrieves the image path from Alibaba Cloud oss ​​correctly, but the image on the page fails to load?
PHP中文网
PHP中文网 2017-05-18 10:56:44
0
2
753

Use vue.js in webview to obtain the image path from Alibaba Cloud oss. After obtaining the data, you can open the image address with a browser and the image can be rendered successfully. However, the image sometimes fails to load on the webview page?

The binding image code is as follows:
<img class="img" :src="img.url" v-for="img in dataList.img">

Sometimes the image is loaded successfully, sometimes it fails. I don’t understand why, please give me some advice!

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
仅有的幸福

What error does the console report when it fails? What is the information in the network?

阿神

If you go to Alibaba Cloud OSS to query the object temporarily, it will take time and may not be obtained before Vue renders.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template