修正立即扫描openlist端不刷新

This commit is contained in:
mtvpls
2025-12-22 22:07:09 +08:00
parent 2104abb84b
commit 76ee99cda2
4 changed files with 30 additions and 133 deletions

View File

@@ -174,7 +174,8 @@ export class OpenListClient {
async listDirectory(
path: string,
page = 1,
perPage = 100
perPage = 100,
refresh = false
): Promise<OpenListListResponse> {
const response = await this.fetchWithRetry(`${this.baseURL}/api/fs/list`, {
method: 'POST',
@@ -182,7 +183,7 @@ export class OpenListClient {
body: JSON.stringify({
path,
password: '',
refresh: false,
refresh,
page,
per_page: perPage,
}),