feat: fix the logtics of client joining webdav url

This commit is contained in:
butterfly 2024-04-12 14:02:05 +08:00
parent b72d7fbeda
commit 55d7014301
1 changed files with 3 additions and 3 deletions

View File

@ -63,9 +63,9 @@ export function createWebDavClient(store: SyncStore) {
}; };
}, },
path(path: string, proxyUrl: string = "") { path(path: string, proxyUrl: string = "") {
if (!path.endsWith("/")) { // if (!path.endsWith("/")) {
path += "/"; // path += "/";
} // }
if (path.startsWith("/")) { if (path.startsWith("/")) {
path = path.slice(1); path = path.slice(1);
} }