feat: implement fixed local API port settings for desktop app, allowing users to specify a port for consistent access, with corresponding UI and translations

This commit is contained in:
wizardchen
2026-04-11 16:02:52 +08:00
committed by lyingbug
parent 3f0f69815f
commit d99e2cbac3
13 changed files with 392 additions and 279 deletions
+4
View File
@@ -2,3 +2,7 @@
// This file is automatically generated. DO NOT EDIT
export function GetAPIBaseURL():Promise<string>;
export function GetDesktopHTTPPortSetting():Promise<number>;
export function SetDesktopHTTPPortSetting(arg1:number):Promise<void>;
+8
View File
@@ -5,3 +5,11 @@
export function GetAPIBaseURL() {
return window['go']['main']['App']['GetAPIBaseURL']();
}
export function GetDesktopHTTPPortSetting() {
return window['go']['main']['App']['GetDesktopHTTPPortSetting']();
}
export function SetDesktopHTTPPortSetting(arg1) {
return window['go']['main']['App']['SetDesktopHTTPPortSetting'](arg1);
}