🐛 Fix(custom): await RPC call for download directory selection

This commit is contained in:
Kuingsmile 2024-11-01 14:53:59 +08:00
parent b843278b2c
commit 2079faa4c9

View File

@ -321,7 +321,7 @@ async function initData() {
}
async function handleDownloadDirClick() {
const result = triggerRPC<any>(IRPCActionType.MANAGE_SELECT_DOWNLOAD_FOLDER)
const result = await triggerRPC<any>(IRPCActionType.MANAGE_SELECT_DOWNLOAD_FOLDER)
if (result) {
form.value.downloadDir = result
}