From 729a5021616accfd33e33d66f3dd7478d5b1a3b7 Mon Sep 17 00:00:00 2001 From: shy Date: Sun, 28 Jan 2024 20:02:06 +0800 Subject: [PATCH] add some --- base/web/store.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/base/web/store.go b/base/web/store.go index ffd248e4..6a15c661 100644 --- a/base/web/store.go +++ b/base/web/store.go @@ -49,9 +49,6 @@ func init() { ctx.ProcessField(m, CHAT_IFRAME, m.Option(ORIGIN)+S(m.Option(mdb.NAME))+C(PORTAL), arg...) }}, }, ctx.ConfAction(ctx.TOOLS, DREAM)), Hand: func(m *ice.Message, arg ...string) { - if ice.Info.NodeType == WORKER { - return - } if len(arg) == 0 { m.Cmd(SPIDE, arg, kit.Dict(ice.MSG_FIELDS, "time,client.type,client.name,client.origin")).Table(func(value ice.Maps) { if value[CLIENT_TYPE] == nfs.REPOS && value[CLIENT_NAME] != ice.OPS { @@ -71,7 +68,9 @@ func init() { } m.Push("", value, kit.Split("time,name,icon,repos,binary,module,version")) m.Push(mdb.TEXT, value[nfs.REPOS]).Push(ORIGIN, origin) - if _, ok := list[value[mdb.NAME]]; ok { + if ice.Info.NodeType == WORKER { + m.PushButton(PORTAL) + } else if _, ok := list[value[mdb.NAME]]; ok { m.PushButton(OPEN, PORTAL) } else { m.PushButton(INSTALL, PORTAL)