服务支持fastcgi;路径规则支持匹配后缀

This commit is contained in:
GoEdgeLab
2021-05-10 21:13:09 +08:00
parent b78a3a2969
commit 3076a46a7a
26 changed files with 803 additions and 25 deletions

View File

@@ -0,0 +1,33 @@
Tea.context(function () {
this.params = this.fastcgi.params
if (this.params == null) {
this.params = []
} else {
this.params.forEach(function (v) {
switch (v.name) {
case "DOCUMENT_ROOT":
v.nameZh = "文档目录"
break;
case "SCRIPT_FILENAME":
v.nameZh = "脚本文件"
break
}
})
}
this.addParam = function () {
this.params.push({
"name": "",
"value": "",
"nameZh": ""
})
this.$delay(function () {
this.$find("form input[name='paramNames']").last().focus()
})
}
this.removeParam = function (index) {
this.params.$remove(index)
}
})