From 4d2ae25ee0f36178248a225cf9eb3fdac5dfe29b Mon Sep 17 00:00:00 2001 From: harveyshao Date: Sat, 24 Dec 2022 23:44:14 +0800 Subject: [PATCH] opt some --- core/code/js.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/code/js.go b/core/code/js.go index 45fe7f72..c7c36f26 100644 --- a/core/code/js.go +++ b/core/code/js.go @@ -81,7 +81,7 @@ func _js_exec(m *ice.Message, arg ...string) { } ctx.DisplayBase(m, path.Join("/require", path.Join(arg[2], arg[1]))) key := ctx.GetFileCmd(kit.Replace(path.Join(arg[2], arg[1]), ".js", ".go")) - ctx.ProcessCommand(m, kit.Select("can.plugin", key), kit.Simple()) + ctx.ProcessCommand(m, kit.Select("can._plugin", key), kit.Simple()) return args := kit.Simple("node", "-e", kit.Join(_js_main_script(m, arg...), ice.NL)) m.Cmdy(cli.SYSTEM, args).StatusTime(ctx.ARGS, kit.Join(append([]string{ice.ICE_BIN, m.PrefixKey(), m.ActionKey()}, arg...), ice.SP))