[FIX]【保全】pdf预览url调整

This commit is contained in:
yuweiqi
2020-06-12 18:16:08 +08:00
parent 480407d609
commit 9e0b469feb
2 changed files with 4 additions and 2 deletions

View File

@@ -64,7 +64,8 @@ export default {
res => {
if (res.result == 0) {
this.pdfList = res.content.surrenderSignList
this.pdfUrl = config.assetsUrl + `${this.pdfList[0].policyUrl}` //待后端开发
// this.pdfUrl = config.assetsUrl + `${this.pdfList[0].policyUrl}`
this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${this.pdfList[0].policyUrl}`)
this.documentName = this.pdfList[0].documentName
resolve()
} else {

View File

@@ -64,7 +64,8 @@ export default {
res => {
if (res.result == 0) {
this.pdfList = res.content.surrenderSignList
this.pdfUrl = config.assetsUrl + `${this.pdfList[0].policyUrl}` //待后端开发
// this.pdfUrl = config.assetsUrl + `${this.pdfList[0].policyUrl}`
this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${this.pdfList[0].policyUrl}`)
this.documentName = this.pdfList[0].documentName
resolve()
} else {