https://www.cnblogs.com/shenjp/p/9754171.html
如果图片路径是 接口的返回信息的话,将路径存储在数组中,在this.$nextTick中实例化Viewer:
this.$nextTick(()=>{
const ViewerDom = document.getElementById('previewImg');
const viewer = new Viewer(ViewerDom, {
// 配置
})
})
https://www.cnblogs.com/shenjp/p/9754171.html
如果图片路径是 接口的返回信息的话,将路径存储在数组中,在this.$nextTick中实例化Viewer:
this.$nextTick(()=>{
const ViewerDom = document.getElementById('previewImg');
const viewer = new Viewer(ViewerDom, {
// 配置
})
})
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。