Commit 794eff9e authored by 小费同学阿's avatar 小费同学阿 💬

Changes

parent 442e56f6
......@@ -63,6 +63,7 @@
<script>
import { getToken } from '@/utils/auth'
import { delManageList, etManageList, saveEnterManage } from '@/api/informationReport'
import { saveAs } from 'file-saver'
export default {
name: 'Index',
......@@ -105,6 +106,7 @@ export default {
},
/** 下载文件 */
downloadFile(data) {
console.log('process.env.VUE_APP_RESOURCE_PREFIX + data.path', process.env.VUE_APP_RESOURCE_PREFIX + data.path)
saveAs(process.env.VUE_APP_RESOURCE_PREFIX + data.path, data.fileName)
},
/** 删除 */
......@@ -126,7 +128,7 @@ export default {
fileSize: fileList.size,
fileType: fileList.raw.type,
// fileUrl: fileList.response.url,
path: fileList.response.url,
path: fileList.response.fileName,
id: fileList.uid
}
// console.log('file, fileList:', file, fileList)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment