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
 
 		})
 	}