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

opt title

This commit is contained in:
shaoying 2019-12-31 22:38:25 +08:00
parent ad06ef751c
commit b73ba661fa
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ Volcanos("user", {help: "用户模块",
confirm: function(text) {return confirm(JSON.stringify(text))}, confirm: function(text) {return confirm(JSON.stringify(text))},
prompt: function(text, cb) {(text = prompt(text)) != undefined && typeof cb == "function" && cb(text); return text}, prompt: function(text, cb) {(text = prompt(text)) != undefined && typeof cb == "function" && cb(text); return text},
reload: function(force) {(force || confirm("重新加载页面?")) && location.reload()}, reload: function(force) {(force || confirm("重新加载页面?")) && location.reload()},
title: function(text) {document.title = text},
toast: function(text) {}, toast: function(text) {},
carte: function(event, cb) {}, carte: function(event, cb) {},

View File

@ -17,6 +17,9 @@ Volcanos("onimport", {help: "导入数据", list: [],
if (value == "update") {return} if (value == "update") {return}
can.Conf("temp_river", value) can.Conf("temp_river", value)
}, },
you: function(event, can, value, cmd, output) {
can.user.title(value)
},
storm: function(event, can, value, cmd, output) { storm: function(event, can, value, cmd, output) {
can.Cache(can.Conf("river")+"."+can.Conf("storm"), output, "some"); can.Cache(can.Conf("river")+"."+can.Conf("storm"), output, "some");