This commit is contained in:
2025-02-25 11:33:06 +08:00
parent 99f09efc0f
commit f957c6aaf7
@@ -310,7 +310,8 @@ layout("/mobile/platform.html"){
}, },
methods: { methods: {
fileClick(file){ 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() { async getQuestionData() {
const resp = await $.get('/mobile/question/h5/questionInfo/' + this.id) const resp = await $.get('/mobile/question/h5/questionInfo/' + this.id)