wangguoyu 2 ay önce
ebeveyn
işleme
4171c7b7a2
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      pages/demo/richDemo.vue

+ 3 - 1
pages/demo/richDemo.vue

@@ -37,7 +37,9 @@
 		zhaoshengZhaopinInfo({}).then(res => {
 		zhaoshengZhaopinInfo({}).then(res => {
 			console.log('res', res);
 			console.log('res', res);
 			content.value = res.data.content
 			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
 
 
 		})
 		})
 	}
 	}