|
49 | 49 | <summary title="查询字符串参数"> |
50 | 50 | Query String Parameters |
51 | 51 | <a class="btn btn-info btn-xxs" |
52 | | - ng-click="entry.request.queryString.unshift({name: ':key', value: ':value'})">ADD</a> |
| 52 | + ng-click="entry.request.queryString.push({name: ':key', value: ':value'})">ADD</a> |
53 | 53 | </summary> |
54 | 54 | <div editablelist="entry.request.queryString"></div> |
55 | 55 | </details> |
|
59 | 59 | <summary title="请求头"> |
60 | 60 | Request Headers |
61 | 61 | <a class="btn btn-info btn-xxs" |
62 | | - ng-click="entry.request.headers.unshift({name:'', value:'', checked: true})">ADD</a> |
| 62 | + ng-click="entry.request.headers.push({name:'', value:'', checked: true})">ADD</a> |
63 | 63 | </summary> |
64 | 64 | <div editablelist="entry.request.headers"></div> |
65 | 65 | </details> |
|
71 | 71 | <summary title="Cookies"> |
72 | 72 | Cookies |
73 | 73 | <a class="btn btn-info btn-xxs" |
74 | | - ng-click="entry.request.cookies.unshift({name:'', value:'', checked:true})">ADD</a> |
| 74 | + ng-click="entry.request.cookies.push({name:'', value:'', checked:true})">ADD</a> |
75 | 75 | </summary> |
76 | 76 | <div editablelist="entry.request.cookies"></div> |
77 | 77 | </details> |
|
82 | 82 | <summary title="请求消息体"> |
83 | 83 | Request Payload |
84 | 84 | <a class="btn btn-info btn-xxs" ng-if="entry.request.postData.params" |
85 | | - ng-click="entry.request.postData.params.unshift({name:'', value:''})">ADD</a> |
| 85 | + ng-click="entry.request.postData.params.push({name:'', value:''})">ADD</a> |
86 | 86 | </summary> |
87 | 87 | <pre class="contentedit-wrapper" ng-bind-html="variables_wrapper(entry.request.postData.text)" ng-if="!entry.request.postData.params"></pre> |
88 | 88 | <textarea contenteditable style="width: 100%" rows="5" onfocus="$(this).height($(this)[0].scrollHeight);" ng-model="entry.request.postData.text" ng-if="!entry.request.postData.params"></textarea> |
|
126 | 126 | <details open onclick="return false"> |
127 | 127 | <summary title="变量"> |
128 | 128 | Variables |
129 | | - <a class="btn btn-info btn-xxs" ng-click="env.unshift({name:'', value:''})">ADD</a> |
| 129 | + <a class="btn btn-info btn-xxs" ng-click="env.push({name:'', value:''})">ADD</a> |
130 | 130 | </summary> |
131 | 131 | <div editablelist="env"></div> |
132 | 132 | </details> |
|
208 | 208 | 请求成功条件断言 |
209 | 209 | <small>支持正则,任意条件满足即为请求成功(没有失败条件命中时)</small> |
210 | 210 | <a class="btn btn-info btn-xxs" |
211 | | - ng-click="entry.success_asserts.unshift({re:'', from:'content'})">ADD</a> |
| 211 | + ng-click="entry.success_asserts.push({re:'', from:'content'})">ADD</a> |
212 | 212 | </summary> |
213 | 213 | <dl class="dl-horizontal"> |
214 | 214 | <dt ng-repeat-start="rule in entry.success_asserts"> |
|
235 | 235 | 请求失败条件断言 |
236 | 236 | <small>支持正则,任意条件满足即为请求失败</small> |
237 | 237 | <a class="btn btn-info btn-xxs" |
238 | | - ng-click="entry.failed_asserts.unshift({re:'', from:'content'})">ADD</a> |
| 238 | + ng-click="entry.failed_asserts.push({re:'', from:'content'})">ADD</a> |
239 | 239 | </summary> |
240 | 240 | <dl class="dl-horizontal"> |
241 | 241 | <dt ng-repeat-start="rule in entry.failed_asserts"> |
|
262 | 262 | 变量提取 |
263 | 263 | <small>支持正则,支持括号表达式</small> |
264 | 264 | <a class="btn btn-info btn-xxs" |
265 | | - ng-click="entry.extract_variables.unshift({name: '', re:'', from:'content'})">ADD</a> |
| 265 | + ng-click="entry.extract_variables.push({name: '', re:'', from:'content'})">ADD</a> |
266 | 266 | </summary> |
267 | 267 | <dl class="dl-horizontal"> |
268 | 268 | <dt ng-repeat-start="rule in entry.extract_variables"> |
|
0 commit comments