feat: fix webdav 逻辑

This commit is contained in:
butterfly
2024-04-12 13:40:37 +08:00
parent 79f342439a
commit ee15c14049
3 changed files with 17 additions and 7 deletions

View File

@@ -76,7 +76,7 @@ export function createWebDavClient(store: SyncStore) {
let url;
if (proxyUrl.length > 0 || proxyUrl === "/") {
let u = new URL(proxyUrl + "/api/webdav/" + path);
let u = new URL(proxyUrl + "api/webdav/" + path);
// add query params
u.searchParams.append("endpoint", config.endpoint);
url = u.toString();