缓存匹配条件增加“排除URL正则匹配”

This commit is contained in:
GoEdgeLab
2021-05-12 16:05:18 +08:00
parent 37bc3c0879
commit 64454513b3
2 changed files with 29 additions and 0 deletions

View File

@@ -148,6 +148,28 @@ Vue.component("http-cond-url-regexp", {
</div>`
})
// 排除URL正则匹配
Vue.component("http-cond-url-not-regexp", {
props: ["v-cond"],
data: function () {
let cond = this.vCond
if (cond == null) {
cond = {
isRequest: true,
param: "${requestPath}",
operator: "not regexp",
value: ""
}
}
return {
cond: cond
}
},
template: `<div>
<input type="hidden" name="condJSON" :value="JSON.stringify(cond)"/>
<input type="text" v-model="cond.value"/>
</div>`
})
// 根据MimeType
Vue.component("http-cond-mime-type", {