feat: fix the logtics of client joining webdav url

This commit is contained in:
butterfly 2024-04-12 14:20:15 +08:00
parent 55d7014301
commit fd8d0a1746
1 changed files with 1 additions and 1 deletions

View File

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