2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 22:32:24 +08:00

feat: 文件远程下载

This commit is contained in:
耗子
2024-10-20 19:20:39 +08:00
parent f9233bd36b
commit d51d11f460
4 changed files with 107 additions and 21 deletions

View File

@@ -31,8 +31,8 @@ export default {
copy: (source: string, target: string): Promise<AxiosResponse<any>> =>
request.post('/file/copy', { source, target }),
// 远程下载
remoteDownload: (url: string, path: string): Promise<AxiosResponse<any>> =>
request.post('/file/remoteDownload', { url, path }),
remoteDownload: (path: string, url: string): Promise<AxiosResponse<any>> =>
request.post('/file/remoteDownload', { path, url }),
// 获取文件信息
info: (path: string): Promise<AxiosResponse<any>> =>
request.get('/file/info', { params: { path } }),