代码优化

This commit is contained in:
liang.chao 2025-06-12 15:34:06 +08:00
parent cb52ee8c97
commit 80bb1ff64c
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
</script>