feat: download shared subdirectory (#1184)

Co-authored-by: Oleg Lobanov <oleg@lobanov.me>
This commit is contained in:
WeidiDengandOleg Lobanov authored and GitHub committed 2020-12-28 17:35:29 +01:00
1 parent 677bce376b
commit fb5b28d9cb
13 files changed
+240 -88

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ export async function put (url, content = '') {
}
export function download (format, ...files) {
let url = `${baseURL}/api/raw`
let url = store.getters['isSharing'] ? `${baseURL}/api/public/dl/${store.state.hash}` : `${baseURL}/api/raw`
if (files.length === 1) {
url += removePrefix(files[0]) + '?'