1
0
forked from x/volcanos
This commit is contained in:
IT 老营长 @云轩领航-创始人 2022-08-19 19:18:51 +08:00
parent 09ab86a009
commit da1c6269dd

View File

@ -254,7 +254,7 @@ Volcanos(chat.ONACTION, {help: "控件交互", list: [nfs.SAVE, code.COMPILE, co
compile: function(event, can, button) { var toast = can.user.toastProcess(can, "编译中...") compile: function(event, can, button) { var toast = can.user.toastProcess(can, "编译中...")
can.runAction(can.request(event), button, [], function(msg) { toast.close() can.runAction(can.request(event), button, [], function(msg) { toast.close()
if (msg.Length() == 0) { var toast1 = can.user.toastProcess(can, "重启中...") if (msg.Length() == 0) { var toast1 = can.user.toastProcess(can, "重启中...")
can.onmotion.delay(can, function() { toast1.close(), can.onaction[cli.SHOW]({}, can) }, 3000) can.onmotion.delay(can, function() { toast1.close(), can.onaction[cli.SHOW]({}, can) }, 5000)
} else { can.ui.search._show(msg) } } else { can.ui.search._show(msg) }
}) })
@ -273,7 +273,7 @@ Volcanos(chat.ONACTION, {help: "控件交互", list: [nfs.SAVE, code.COMPILE, co
can.onaction._runs(can.request(event, {file: (can.base.trimSuffix(can.Option(nfs.FILE), can.base.Ext(can.Option(nfs.FILE)))+nfs.ZML).split("/").pop()}), can, button) can.onaction._runs(can.request(event, {file: (can.base.trimSuffix(can.Option(nfs.FILE), can.base.Ext(can.Option(nfs.FILE)))+nfs.ZML).split("/").pop()}), can, button)
}, },
dream: function(event, can, button) { dream: function(event, can, button) {
can.onaction._runs(can.request(event, {name: can.base.trimSuffix(can.Option(nfs.FILE), ice.PT+can.base.Ext(can.Option(nfs.FILE)))}), can, button, function(msg) { can.ui.dreams.refresh() can.onaction._runs(can.request(event, {name: can.base.trimSuffix(can.Option(nfs.FILE).split(ice.PS).pop(), ice.PT+can.base.Ext(can.Option(nfs.FILE)))}), can, button, function(msg) { can.ui.dreams.refresh()
can.onimport.tabview(can, can.Option(nfs.PATH), msg.Option(mdb.NAME), web.DREAM) // 显示空间 can.onimport.tabview(can, can.Option(nfs.PATH), msg.Option(mdb.NAME), web.DREAM) // 显示空间
can.user.toastSuccess(can) can.user.toastSuccess(can)
}) })