Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 61e6390

Browse files
committed
[proxy]请求匹配条件增加文件存在、文件不存在两个操作符
1 parent e780712 commit 61e6390

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/web/public/js/vue.components.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,9 @@ Vue.component("request-cond-box", {
965965
},
966966
isArrayOperator: function (operator) {
967967
return ["in", "not in", "file ext", "mime type"].$contains(operator);
968+
},
969+
hasValue: function (operator) {
970+
return !["file exist", "file not exist"].$contains(operator);
968971
}
969972
},
970973
template: '<div> \
@@ -1005,7 +1008,7 @@ Vue.component("request-cond-box", {
10051008
<p class="comment">{{vOperatorDescription}}</p> \
10061009
</td> \
10071010
</tr> \
1008-
<tr v-show="!isArrayOperator(vOperator)"> \
1011+
<tr v-show="!isArrayOperator(vOperator) && hasValue(vOperator)"> \
10091012
<td>对比值</td> \
10101013
<td> \
10111014
<textarea type="text" v-model="vValue" rows="2" placeholder="对比值"/> \

0 commit comments

Comments
 (0)