zhf
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user