mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-15 21:20:25 +08:00
缓存匹配条件增加“排除URL正则匹配”
This commit is contained in:
@@ -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", {
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user