🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952

This commit is contained in:
Liang Ding 2022-10-25 10:29:50 +08:00
parent 2ffc8f9a40
commit 6e92eb6330
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -358,7 +358,7 @@ export const about = {
});
const fixedPortElement = about.element.querySelector("#fixedPort") as HTMLInputElement;
fixedPortElement.addEventListener("change", () => {
fetchPost("/api/system/setFixedPort", {networkServe: fixedPortElement.checked}, () => {
fetchPost("/api/system/setFixedPort", {fixedPort: fixedPortElement.checked}, () => {
exportLayout(false, () => {
exitSiYuan();
});