This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-08-24 21:58:43 +08:00
parent 35a656f53b
commit 009c46dc69
2 changed files with 2 additions and 3 deletions

View File

@ -41,7 +41,7 @@ type Table struct {
}
func (s Table) Init(m *ice.Message, arg ...string) {
s.Table.Init(m, arg...).GoSleep("30ms", func() {
s.Table.Init(m, arg...).GoSleep("3s", func() {
kit.If(m.GetCommand().Icon, func() { Portal{}.Show(m) })
})
}

View File

@ -144,8 +144,7 @@ func (s Portal) Create(m *ice.Message, arg ...string) {
s.Hash.Create(m, args...)
}
func (s Portal) Show(m *ice.Message, arg ...string) {
key := m.PrefixKey()
m.GoSleep("300ms", func() { m.Cmd(m.Prefix(web.PORTAL), s.Create, ctx.INDEX, key) })
m.Cmd(m.Prefix(web.PORTAL), s.Create, ctx.INDEX, m.PrefixKey())
}
func (s Portal) Link(m *ice.Message, arg ...string) string {
return m.MergePodCmd("", m.Prefix(web.PORTAL)) + "#" + kit.TrimSuffix(kit.Join([]string{arg[0], kit.Select(m.Prefix("apply"), arg, 1), kit.Select("", arg, 2)}, ":"), ":")