src/views/dnc/common/FilePreview.vue
@@ -62,8 +62,9 @@ // console.log('pdfUrl===========================', this.pdfUrl) // }) // } this.spinning = true document.getElementById('ncFileInfo').innerHTML = '' if (docSuffix == 'jpg' || docSuffix == 'png' || docSuffix == 'jpeg' || docSuffix === 'gif' || docSuffix == 'pdf') return this.spinning = true dncApi.getFilePreviewApi(docId) .then(res => { console.log('res----------------------------', res) @@ -86,7 +87,7 @@ .finally(() => { this.spinning = false }) }, } } } </script>