diff --git a/src/main/resources/static/pages/evaluate/passwordBook/personnelPasswordBook.html b/src/main/resources/static/pages/evaluate/passwordBook/personnelPasswordBook.html index 379c44d..8ebde17 100644 --- a/src/main/resources/static/pages/evaluate/passwordBook/personnelPasswordBook.html +++ b/src/main/resources/static/pages/evaluate/passwordBook/personnelPasswordBook.html @@ -173,7 +173,7 @@ } // 预览文件 function downloadFile(id) { - const filePath = fileList.filter(item => item.id === id)[0].filePath + const filePath = ctxPath +"/statics/"+ fileList.filter(item => item.id === id)[0].filePath.split('/upload/')[1] window.open(filePath) }