1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-09-02 17:34:07 +08:00
parent b1d5d09a80
commit 53c5a80da6
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ func _hash_export(m *ice.Message, prefix, chain, file string) {
m.Logs(EXPORT, KEY, path.Join(prefix, chain), FILE, p) m.Logs(EXPORT, KEY, path.Join(prefix, chain), FILE, p)
en := json.NewEncoder(f) en := json.NewEncoder(f)
if en.SetIndent("", " "); !m.WarnNotValid(en.Encode(m.Confv(prefix, kit.Keys(chain, HASH))), EXPORT, prefix) { if en.SetIndent("", " "); !m.WarnNotValid(en.Encode(m.Confv(prefix, kit.Keys(chain, HASH))), EXPORT, prefix) {
m.Conf(prefix, kit.Keys(chain, HASH), "") // m.Conf(prefix, kit.Keys(chain, HASH), "")
} }
} }
func _hash_import(m *ice.Message, prefix, chain, file string) { func _hash_import(m *ice.Message, prefix, chain, file string) {

View File

@ -73,10 +73,10 @@ var Index = &Context{Name: ICE, Help: "冰山模块", Commands: Commands{
m.GoSleep300ms(func() { m.GoSleep300ms(func() {
m.root.Option(EXIT, kit.Select("0", arg, 0)) m.root.Option(EXIT, kit.Select("0", arg, 0))
m.Cmd(SOURCE, ETC_EXIT_SHY) m.Cmd(SOURCE, ETC_EXIT_SHY)
m.Cmd(CTX_EXIT)
if HasUsr() { if HasUsr() {
m.Cmd(EXPORT, EXPORT) m.Cmd(EXPORT, EXPORT)
} }
m.Cmd(CTX_EXIT)
removeImportant(m) removeImportant(m)
}) })
}}, }},