wangguoyu 2 月之前
父節點
當前提交
4171c7b7a2
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      pages/demo/richDemo.vue

+ 3 - 1
pages/demo/richDemo.vue

@@ -37,7 +37,9 @@
 		zhaoshengZhaopinInfo({}).then(res => {
 			console.log('res', res);
 			content.value = res.data.content
-			pdfUrl.value = res.data.pdfUrl
+			
+			pdfUrl.value = `https://mozilla.github.io/pdf.js/web/viewer.html?file=${encodeURIComponent(res.data.pdfUrl)}`
+		//	pdfUrl.value = res.data.pdfUrl
 
 		})
 	}