diff --git a/plugin/state.js b/plugin/state.js index bd7597c4..0a77b28f 100644 --- a/plugin/state.js +++ b/plugin/state.js @@ -99,10 +99,9 @@ Volcanos("onaction", {help: "交互操作", list: [ can.search(event, ["Header.onaction.share"]) }, "生成脚本": function(event, can, button) { var conf = can.Conf() - var args = (conf.index||"")+ice.SP+can.Input("", true).join(ice.SP) - var list = [ + var args = can.Input("", true).join(ice.SP); var list = [ "export ctx_dev="+location.origin+"; ctx_temp=$(mktemp); curl -fsSL $ctx_dev -o $ctx_temp;"+ - " source $ctx_temp "+args, "ish_sys_dev_run_command "+args, + " source $ctx_temp "+(conf.index||"")+ice.SP+args, "ish_sys_dev_run_command "+args, "ish_sys_dev_run_action", "ish_sys_dev_run_source", ] var ui = can.user.toast(can, {title: button, duration: -1, width: -300,