https://www.cnblogs.com/shenjp/p/9754171.html
如果图片路径是 接口的返回信息的话,将路径存储在数组中,在this.$nextTick中实例化Viewer:
this.$nextTick(()=>{ const ViewerDom = document.getElementById('previewImg'); const viewer = new Viewer(ViewerDom, { // 配置 }) })
配置的回调函数:http://www.dowebok.com/demo/192/index3.html