2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 00:57:30 +08:00

feat: 优化文件搜索体验,close #997

This commit is contained in:
2025-09-18 01:29:54 +08:00
parent dcaa603d28
commit 5632a5aa1d
15 changed files with 269 additions and 318 deletions

View File

@@ -34,6 +34,12 @@ export default {
search: (path: string, keyword: string, sub: boolean, page: number, limit: number): any =>
http.Get('/file/search', { params: { path, keyword, sub, page, limit } }),
// 获取文件列表
list: (path: string, page: number, limit: number, sort: string): any =>
http.Get('/file/list', { params: { path, page, limit, sort } })
list: (
path: string,
keyword: string,
sub: boolean,
sort: string,
page: number,
limit: number
): any => http.Get('/file/list', { params: { path, keyword, sub, sort, page, limit } })
}