From 0e52de58dcb1ad6c0f68307fb87f8582760d5a7f Mon Sep 17 00:00:00 2001 From: shy Date: Wed, 28 Feb 2024 15:18:30 +0800 Subject: [PATCH] add some --- const.js | 1 + proto.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/const.js b/const.js index 494bc3a5..fa640cd7 100644 --- a/const.js +++ b/const.js @@ -409,6 +409,7 @@ var icon = { runtime: "bi bi-info-square", template: "bi bi-file-earmark-medical", binary: "bi bi-disc", + title: "bi bi-textarea-t", name: "bi bi-textarea-t", type: "bi bi-card-list", send: "bi bi-send-check", diff --git a/proto.js b/proto.js index 5b93a521..cbdb7f78 100644 --- a/proto.js +++ b/proto.js @@ -70,7 +70,7 @@ var Volcanos = shy({iceberg: "", volcano: "", frame: chat.FRAME_JS, _cache: {}, }, runAction: function(event, action, args, cb, silent) { can.request(event, {_handle: ice.TRUE}, can.Option())._caller() - can.run(event, [ctx.ACTION].concat(action, args), cb, silent) + can.run(event, [ctx.ACTION].concat(action, args||[]), cb, silent) }, search: function(event, cmds, cb) { if (cmds && typeof cmds == code.OBJECT && cmds.length > 0 && typeof cmds[0] == code.OBJECT && cmds[0].length > 0 ) { cmds[0] = cmds[0].join(nfs.PT) }