From d76f16920eb08ddeff756b1156a4d5e2f7d1a942 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 22 Jul 2022 00:04:45 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/5478 --- app/src/config/about.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/config/about.ts b/app/src/config/about.ts index 1a36b1292..4b7d5af24 100644 --- a/app/src/config/about.ts +++ b/app/src/config/about.ts @@ -279,11 +279,11 @@ export const about = { }); btnsElement[1].addEventListener("click", () => { confirmDialog("🔑 " + window.siyuan.languages.genKeyByPW, window.siyuan.languages.initRepoKeyTip, () => { + initDialog.destroy(); fetchPost("/api/repo/InitRepoKeyFromPassphrase", {pass: inputElement.value}, (response) => { window.siyuan.config.repo.key = response.data.key; importKeyElement.parentElement.classList.add("fn__none"); importKeyElement.parentElement.nextElementSibling.classList.remove("fn__none"); - initDialog.destroy(); }); }); });