1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-26 09:14:06 +08:00

opt _refresh

This commit is contained in:
shaoying 2020-10-09 11:52:52 +08:00
parent 0299f62448
commit aece57d66c
2 changed files with 2 additions and 3 deletions

View File

@ -234,7 +234,7 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
}}, }},
"operate": {name: "运维群", storm: { "operate": {name: "运维群", storm: {
"relay": {name: "relay", index: [ "relay": {name: "relay", index: [
"aaa.totp.get", "aaa.totp",
"web.route", "web.route",
"web.space", "web.space",
"web.dream", "web.dream",

View File

@ -137,8 +137,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
return true return true
}, },
_refresh: function(can, msg) { _refresh: function(can, msg) {
var refresh = msg.Option("_refresh") || can.Conf("feature")["_refresh"] can.Timer(500, function(timer) {
can.Timer({interval: 500, length: parseInt(refresh)}, function(timer) {
can.run({}) can.run({})
}) })
}, },