This commit is contained in:
Vanessa 2023-10-22 10:52:13 +08:00
parent 1003a8d38e
commit 6c5da76a32

View file

@ -202,7 +202,9 @@ export const about = {
tokenElement.select();
});
tokenElement.addEventListener("change", () => {
fetchPost("/api/system/setAPIToken", {token: tokenElement.value});
fetchPost("/api/system/setAPIToken", {token: tokenElement.value}, () => {
window.siyuan.config.api.token = tokenElement.value;
});
});
about.element.querySelector("#exportLog").addEventListener("click", () => {
fetchPost("/api/system/exportLog", {}, (response) => {