mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 11:42:22 +08:00
perf: 改进HTTP服务文案
This commit is contained in:
parent
94c6791d12
commit
f3261d524c
|
@ -153,10 +153,10 @@ fun DebugPage() {
|
||||||
val httpServerRunning by HttpService.isRunning.collectAsState()
|
val httpServerRunning by HttpService.isRunning.collectAsState()
|
||||||
TextSwitch(
|
TextSwitch(
|
||||||
name = "HTTP服务",
|
name = "HTTP服务",
|
||||||
desc = "开启HTTP服务, 以便在同一局域网下传递数据" + if (httpServerRunning) "\n${
|
desc = if (httpServerRunning) "浏览器打开下面任意链接即可自动连接\n${
|
||||||
Ext.getIpAddressInLocalNetwork()
|
Ext.getIpAddressInLocalNetwork()
|
||||||
.map { host -> "http://${host}:${store.httpServerPort}" }.joinToString(",")
|
.map { host -> "http://${host}:${store.httpServerPort}" }.joinToString("\n")
|
||||||
}" else "",
|
}" else "开启HTTP服务在同一局域网下连接调试工具",
|
||||||
checked = httpServerRunning
|
checked = httpServerRunning
|
||||||
) {
|
) {
|
||||||
if (!checkOrRequestNotifPermission(context)) {
|
if (!checkOrRequestNotifPermission(context)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user