save download path in database

This commit is contained in:
huangjx
2022-05-12 22:42:41 +08:00
parent cab95529dd
commit 02fb165405
7 changed files with 21 additions and 10 deletions

View File

@@ -22,7 +22,8 @@ export default {
}
let data = { ncd_downloader_dir: path };
let url = helper.generateUrl("/apps/ncdownloader/personal/save");
helper.httpClient(url)
helper
.httpClient(url)
.setData(data)
.setHandler((data) => {
if (data.status) {
@@ -31,7 +32,10 @@ export default {
})
.send();
};
helper.filepicker(cb);
let dlPath = element.hasAttribute("data-path")
? element.getAttribute("data-path")
: undefined;
helper.filepicker(cb, dlPath);
},
},
props: ["path"],