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

This commit is contained in:
刘祥超
2021-05-12 16:05:18 +08:00
parent 2af5e059eb
commit 67242ec80e
2 changed files with 29 additions and 0 deletions

View File

@@ -148,6 +148,28 @@ Vue.component("http-cond-url-regexp", {
</div>` </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 // 根据MimeType
Vue.component("http-cond-mime-type", { Vue.component("http-cond-mime-type", {

View File

@@ -27,6 +27,13 @@
"component": "http-cond-url-regexp", "component": "http-cond-url-regexp",
"isRequest": true "isRequest": true
}, },
{
"type": "url-not-regexp",
"name": "排除URL正则匹配",
"description": "使用正则表达式检查URL中的文件路径是否一致如果一致则不匹配",
"component": "http-cond-url-not-regexp",
"isRequest": true
},
{ {
"type": "mime-type", "type": "mime-type",
"name": "内容MimeType", "name": "内容MimeType",