1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
harveyshao 2021-08-05 20:21:29 +08:00
parent 6f78a40a1e
commit 408257da43

View File

@ -274,6 +274,9 @@ Volcanos("user", {help: "用户操作", agent: {
return can.base.MergeURL(location.origin+path+(clear?"":location.search), objs)
}),
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("=")
x[1] != "" && (args[x[0]] = decodeURIComponent(x[1]))
})