From fce46d83aeebe709b81765028fa844d9a0c3d31a Mon Sep 17 00:00:00 2001 From: shy Date: Sat, 22 Jan 2022 10:48:59 +0800 Subject: [PATCH] opt spide.js --- plugin/story/spide.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/story/spide.js b/plugin/story/spide.js index 3e05f2a1..8a6c70ff 100644 --- a/plugin/story/spide.js +++ b/plugin/story/spide.js @@ -170,8 +170,8 @@ Volcanos("ondetail", {help: "用户交互", list: [], for (var node = tree; node; node = node.last) { can.base.Copy(value, node.meta) } - can.onappend.plugin(can, can.base.Copy(value, {type: chat.FLOAT, index: index, args: args}), function(sub) { - sub.run = function(event, cmds, cb) { can.request(event, value, can.Option()) + can.onappend.plugin(can, can.base.Copy({type: chat.FLOAT, index: index, args: args}, value), function(sub) { + sub.run = function(event, cmds, cb) { var msg = can.request(event) can.run(event, can.misc.concat(can, prefix, cmds), cb, true) }, can.ondetail.figure(can, sub) })