From 7e5cff6b81f034a0c5fd6bfd926cdb41aa46726d Mon Sep 17 00:00:00 2001 From: shy Date: Sat, 22 Mar 2025 12:54:06 +0800 Subject: [PATCH] add some --- base/web/render.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/web/render.go b/base/web/render.go index dc951bc5..b63d9bb5 100644 --- a/base/web/render.go +++ b/base/web/render.go @@ -84,6 +84,7 @@ func Render(m *ice.Message, cmd string, args ...ice.Any) bool { "$output", fieldset+">div.output", "$status", fieldset+">div.status", "$fieldset", fieldset, + "$body", "body.cmd."+m.Option(ctx.INDEX), "$index", m.Option(ctx.INDEX), "$input", "body>div.input.float."+m.Option(ctx.INDEX), ))) @@ -171,7 +172,7 @@ func RenderPodCmd(m *ice.Message, pod, cmd string, arg ...ice.Any) { m.Option(mdb.ICONS, msg.Option(ice.MSG_NODEICON)) } m.OptionDefault(mdb.ICONS, m.Resource(kit.Select(ice.Info.NodeIcon, msg.Option(ice.MSG_NODEICON), msg.Append(mdb.ICONS)))) - serve := kit.Select("localhost:9020", UserWeb(m).Host) + serve := strings.Split(UserHost(m), "://")[1] pod = kit.Select(pod, msg.Option(ice.MSG_NODENAME), m.Option(ice.MSG_USERPOD) != "") m.OptionDefault(TITLE, kit.Select(cmd, msg.Append(mdb.HELP), !m.IsEnglish())+" "+kit.Select(serve, pod)) RenderCmds(m, kit.Dict(msg.AppendSimple(), ctx.ARGS, kit.Simple(arg), ctx.DISPLAY, m.Option(ice.MSG_DISPLAY)))