添加开发API允许局域网访问选项(#1828)

This commit is contained in:
lyswhut
2024-04-01 22:44:34 +08:00
parent 703327ed41
commit cd7d5ed665
10 changed files with 31 additions and 11 deletions
+1
View File
@@ -138,6 +138,7 @@ const defaultSetting: LX.AppSetting = {
'openAPI.enable': false,
'openAPI.port': '23330',
'openAPI.bindLan': false,
// 'theme.id': 'blue_plus',
'theme.id': 'green',
+7 -2
View File
@@ -626,9 +626,14 @@ declare global {
'openAPI.enable': boolean
/**
* 同步服务端口号
* API服务端口号
*/
'openAPI.port': '23333' | string
'openAPI.port': '23330' | string
/**
* 是否绑定到局域网
*/
'openAPI.bindLan': boolean
/**
* 是否在离开搜索界面时自动清空搜索框
+1
View File
@@ -8,6 +8,7 @@ declare namespace LX {
interface EnableServer {
enable: boolean
port: string
bindLan: boolean
}
interface ActionBase <A> {