mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
This commit is contained in:
parent
1003a8d38e
commit
6c5da76a32
1 changed files with 3 additions and 1 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue