2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 12:15:04 +08:00

feat: 文件管理优化

This commit is contained in:
耗子
2024-10-20 17:28:02 +08:00
parent 480a6a829d
commit a2ebc070ae
5 changed files with 285 additions and 50 deletions

View File

@@ -53,6 +53,6 @@ export default {
search: (keyword: string): Promise<AxiosResponse<any>> =>
request.post('/file/search', { keyword }),
// 获取文件列表
list: (path: string, page: number, limit: number): Promise<AxiosResponse<any>> =>
request.get('/file/list', { params: { path, page, limit } })
list: (path: string, page: number, limit: number, sort: string): Promise<AxiosResponse<any>> =>
request.get('/file/list', { params: { path, page, limit, sort } })
}