1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shaoying 2020-08-10 02:51:53 +08:00
parent 31a4563e5d
commit 8655ec1974

View File

@ -59,6 +59,7 @@ Volcanos("onengine", { _init: function(can, meta, list, cb, target) {
remote: function(event, can, msg, pane, cmds, cb) {
if (can.onengine.engine(event, can, msg, pane, cmds, cb)) { return }
if (location.protocol == "file:") {
var res = Volcanos.meta.pack[pane._name+","+cmds.join(",")]
if (res) {
res = can.request(event, res)
@ -66,7 +67,10 @@ Volcanos("onengine", { _init: function(can, meta, list, cb, target) {
return typeof cb == "function" && cb(res)
}
if (location.protocol == "file:") { typeof cb == "function" && cb(msg); return }
typeof cb == "function" && cb(msg)
return
}
can.misc.Run(event, can, {names: pane._name}, cmds, function(msg) {
delete(msg._event), delete(msg._can)
Volcanos.meta.pack[pane._name+","+cmds.join(",")] = msg