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-05-26 08:28:08 +08:00
parent 9e256717c2
commit b16bc2632d

View File

@ -333,12 +333,13 @@ Volcanos(chat.ONEXPORT, {
session: function(can, key, value) { if (value) { value = JSON.stringify(value) } session: function(can, key, value) { if (value) { value = JSON.stringify(value) }
return can.misc.sessionStorage(can, [can.ConfSpace()||can.misc.Search(can, ice.POD), can.ConfIndex(), key, location.pathname], value) return can.misc.sessionStorage(can, [can.ConfSpace()||can.misc.Search(can, ice.POD), can.ConfIndex(), key, location.pathname], value)
}, },
title: function(can, title) { if (can.base.isIn(title, web.DESKTOP)) { return } title: function(can, title) { if (!can.isCmdMode()) { return }
var list = []; function push(p) { p && list.indexOf(p) == -1 && list.push(p) } var list = []; function push(p) { p && list.indexOf(p) == -1 && list.push(p) }
if (!can.base.isIn(can.ConfIndex(), web.PORTAL)) {
push(can.user.trans(can, can.ConfIndex(), can.Conf("help"))) push(can.user.trans(can, can.ConfIndex(), can.Conf("help")))
// push(can.ConfIndex()) }
can.core.List(arguments, function(title, index) { index > 0 && push(title) }), push(can.ConfSpace()||can.misc.Search(can, ice.POD)) can.core.List(arguments, function(title, index) { index > 0 && push(title) }), push(can.ConfSpace()||can.misc.Search(can, ice.POD))
can.isCmdMode() && can.user.title(list.join(" ")) can.user.title(list.join(" "))
}, },
args: function(can) { return can.Option() }, args: function(can) { return can.Option() },
link: function(can) { link: function(can) {