1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-04-01 20:08:45 +08:00
parent 7e4557cd58
commit ff697bd057
2 changed files with 4 additions and 5 deletions

View File

@ -389,9 +389,8 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
},
field: function(can, type, item, target) { type = type||html.STORY, item = item||{}
var name = can.core.Split(item.nick||item.name||"").pop()||""; can.base.isIn(name,
tcp.SERVER, tcp.CLIENT, web.STUDIO,
mdb.SEARCH, web.SERVICE, "instance",
var name = can.core.Split(item.nick||item.index||"", " .").pop()||""; can.base.isIn(name,
tcp.SERVER, tcp.CLIENT, web.STUDIO, mdb.SEARCH, web.SERVICE, "instance",
) && (name = (item.index||"").split(".").slice(-2).join(".")), (type != html.PLUG && !can.base.isIn(can.ConfIndex(),
web.DESKTOP, web.MESSAGE, web.VIMER,
)) && (name = can.core.Keys(item.space||item._space, name))

View File

@ -68,8 +68,8 @@ var Volcanos = shy({iceberg: "", volcano: "", frame: chat.FRAME_JS, _cache: {},
runActionCommand: function(event, index, args, cb) { can.request(event)._caller()
can.runAction(event, ctx.RUN, [index].concat(args), cb, true)
},
runAction: function(event, action, args, cb, silent) {
can.request(event, {_handle: ice.TRUE}, can.Option())._caller()
runAction: function(event, action, args, cb, silent) { var msg = can.request(event, {_handle: ice.TRUE})
can.request(can.base.isIn(msg._can, can, can._fields? can.sup: can.sub)? can.Option(): {})._caller()
can.run(event, [ctx.ACTION].concat(action, args||[]), cb, silent)
},
search: function(event, cmds, cb) {