diff --git a/web/public/js/components/common/request-variables.js b/web/public/js/components/common/request-variables.js
new file mode 100644
index 00000000..8188fe39
--- /dev/null
+++ b/web/public/js/components/common/request-variables.js
@@ -0,0 +1,33 @@
+// 将变量转换为中文
+Vue.component("request-variables-describer", {
+ data: function () {
+ return {
+ vars:[]
+ }
+ },
+ methods: {
+ update: function (variablesString) {
+ this.vars = []
+ let that = this
+ variablesString.replace(/\${.+?}/g, function (v) {
+ let def = that.findVar(v)
+ if (def == null) {
+ return v
+ }
+ that.vars.push(def)
+ })
+ },
+ findVar: function (name) {
+ let def = null
+ window.REQUEST_VARIABLES.forEach(function (v) {
+ if (v.code == name) {
+ def = v
+ }
+ })
+ return def
+ }
+ },
+ template: `
+
用来区分不同缓存内容的唯一Key。
+ +用来区分不同缓存内容的唯一Key。
所有条件匹配顺序为从上到下,可以拖动左侧的排序。
+所有条件匹配顺序为从上到下,可以拖动左侧的排序。服务设置的优先级比全局缓存策略设置的优先级要高。
+添加不缓存设置 diff --git a/web/public/js/components/server/http-header-policy-box.js b/web/public/js/components/server/http-header-policy-box.js index 588fa5b0..d7fed57d 100644 --- a/web/public/js/components/server/http-header-policy-box.js +++ b/web/public/js/components/server/http-header-policy-box.js @@ -53,7 +53,7 @@ Vue.component("http-header-policy-box", { responseDeletingHeaders = responsePolicy.deleteHeaders } } - + return { type: type, typeName: (type == "request") ? "请求" : "响应", @@ -74,21 +74,21 @@ Vue.component("http-header-policy-box", { addSettingHeader: function (policyId) { teaweb.popup("/servers/server/settings/headers/createSetPopup?" + this.vParams + "&headerPolicyId=" + policyId, { callback: function () { - window.location.reload() + teaweb.successRefresh("保存成功") } }) }, addDeletingHeader: function (policyId, type) { teaweb.popup("/servers/server/settings/headers/createDeletePopup?" + this.vParams + "&headerPolicyId=" + policyId + "&type=" + type, { callback: function () { - window.location.reload() + teaweb.successRefresh("保存成功") } }) }, updateSettingPopup: function (policyId, headerId) { teaweb.popup("/servers/server/settings/headers/updateSetPopup?" + this.vParams + "&headerPolicyId=" + policyId + "&headerId=" + headerId, { callback: function () { - window.location.reload() + teaweb.successRefresh("保存成功") } }) },