mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
c597bd2f3d
commit
1003a8d38e
1 changed files with 4 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ export const about = {
|
||||||
<div class="b3-label__text">${window.siyuan.languages.about14}</div>
|
<div class="b3-label__text">${window.siyuan.languages.about14}</div>
|
||||||
</div>
|
</div>
|
||||||
<span class="fn__space"></span>
|
<span class="fn__space"></span>
|
||||||
<input class="b3-text-field fn__flex-center fn__size200" id="token" value="${window.siyuan.config.api.token}" readonly="readonly">
|
<input class="b3-text-field fn__flex-center fn__size200" id="token" value="${window.siyuan.config.api.token}">
|
||||||
</label>
|
</label>
|
||||||
<div class="b3-label${(window.siyuan.config.system.container === "std" || window.siyuan.config.system.container === "docker") ? "" : " fn__none"}">
|
<div class="b3-label${(window.siyuan.config.system.container === "std" || window.siyuan.config.system.container === "docker") ? "" : " fn__none"}">
|
||||||
${window.siyuan.languages.networkProxy}
|
${window.siyuan.languages.networkProxy}
|
||||||
|
|
@ -201,6 +201,9 @@ export const about = {
|
||||||
tokenElement.addEventListener("click", () => {
|
tokenElement.addEventListener("click", () => {
|
||||||
tokenElement.select();
|
tokenElement.select();
|
||||||
});
|
});
|
||||||
|
tokenElement.addEventListener("change", () => {
|
||||||
|
fetchPost("/api/system/setAPIToken", {token: tokenElement.value});
|
||||||
|
});
|
||||||
about.element.querySelector("#exportLog").addEventListener("click", () => {
|
about.element.querySelector("#exportLog").addEventListener("click", () => {
|
||||||
fetchPost("/api/system/exportLog", {}, (response) => {
|
fetchPost("/api/system/exportLog", {}, (response) => {
|
||||||
openByMobile(response.data.zip);
|
openByMobile(response.data.zip);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue