mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 21:02:49 +00:00
perf: 优化实现文件夹下载以及多文件压缩下载功能
This commit is contained in:
parent
ed4afa63f0
commit
c0a594655d
@ -1479,6 +1479,8 @@ export default {
|
||||
},
|
||||
|
||||
async downloadPackFile(filePackName) {
|
||||
// 延时 1 秒,等待服务器打包完成
|
||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
||||
const downloadUrl = $A.apiUrl(`file/download/confirm?name=${filePackName}&token=${this.userToken}`);
|
||||
try {
|
||||
const response = await axios({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user