代码优化
This commit is contained in:
parent
cb52ee8c97
commit
80bb1ff64c
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue