mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add pod
This commit is contained in:
parent
6f78a40a1e
commit
408257da43
@ -274,6 +274,9 @@ Volcanos("user", {help: "用户操作", agent: {
|
|||||||
return can.base.MergeURL(location.origin+path+(clear?"":location.search), objs)
|
return can.base.MergeURL(location.origin+path+(clear?"":location.search), objs)
|
||||||
}),
|
}),
|
||||||
Search: shy("请求参数", function(can, key, value) { var args = {}
|
Search: shy("请求参数", function(can, key, value) { var args = {}
|
||||||
|
var ls = location.pathname.split("/")
|
||||||
|
if (ls[1] == "chat" && ls[2] == "pod") { args["pod"] = ls[3] }
|
||||||
|
|
||||||
location.search && location.search.slice(1).split("&").forEach(function(item) { var x = item.split("=")
|
location.search && location.search.slice(1).split("&").forEach(function(item) { var x = item.split("=")
|
||||||
x[1] != "" && (args[x[0]] = decodeURIComponent(x[1]))
|
x[1] != "" && (args[x[0]] = decodeURIComponent(x[1]))
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user