mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 15:56:10 +01:00
🚨
This commit is contained in:
parent
a8f3b1762a
commit
b2ba9ace07
10 changed files with 33 additions and 36 deletions
|
|
@ -391,13 +391,13 @@ export const about = {
|
|||
});
|
||||
about.element.querySelector("#aboutConfirm").addEventListener("click", () => {
|
||||
const scheme = (about.element.querySelector("#aboutScheme") as HTMLInputElement).value;
|
||||
const host = (about.element.querySelector("#aboutHost") as HTMLInputElement).value
|
||||
const host = (about.element.querySelector("#aboutHost") as HTMLInputElement).value;
|
||||
const port = (about.element.querySelector("#aboutPort") as HTMLInputElement).value;
|
||||
fetchPost("/api/system/setNetworkProxy", {scheme, host, port}, () => {
|
||||
window.siyuan.config.system.networkProxy.scheme = scheme
|
||||
window.siyuan.config.system.networkProxy.host = host
|
||||
window.siyuan.config.system.networkProxy.port = port
|
||||
setProxy()
|
||||
window.siyuan.config.system.networkProxy.scheme = scheme;
|
||||
window.siyuan.config.system.networkProxy.host = host;
|
||||
window.siyuan.config.system.networkProxy.port = port;
|
||||
setProxy();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue