From f957c6aaf7daa77717d35709e75821d8ee02d1bf Mon Sep 17 00:00:00 2001 From: zhouhefeng Date: Tue, 25 Feb 2025 11:33:06 +0800 Subject: [PATCH] zhf --- src/main/resources/views/mobile/question/poll.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/views/mobile/question/poll.html b/src/main/resources/views/mobile/question/poll.html index 7ab2263..e7fa102 100644 --- a/src/main/resources/views/mobile/question/poll.html +++ b/src/main/resources/views/mobile/question/poll.html @@ -310,7 +310,8 @@ layout("/mobile/platform.html"){ }, methods: { fileClick(file){ - preview(file.filename, file.id) + let pdfStreamUrl = encodeURIComponent(FILE_STREAM_PREVIEW_ADDRESS + '?id=' + file.id) //将路径转码 + window.open('/assets/platform/plugins/pdfJs/web/viewer.html?file=' + pdfStreamUrl,file. filename) }, async getQuestionData() { const resp = await $.get('/mobile/question/h5/questionInfo/' + this.id)