File tree 1 file changed +8
-1
lines changed
docs/.vuepress/components
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 15
15
<option value =" trace" >TRACE</option >
16
16
<option value =" patch" >PATCH</option >
17
17
</select >
18
+ <h4 >Strict mode</h4 >
19
+ <label ><input type =" checkbox" v-model =" strictMode" > Use strict mode</label >
18
20
<h4 >Possible fixtures (in order of specificity)</h4 >
19
21
<ol v-if =" fixtures.length" >
20
22
<li v-for =" fixture in fixtures" >/path/to/fixtures/{{ fixture }}</li >
196
198
data () {
197
199
return {
198
200
url: ' ' ,
199
- method: ' get'
201
+ method: ' get' ,
202
+ strictMode: false
200
203
};
201
204
},
202
205
223
226
fixtures .push (` ${ url .hostname }${ pathname} .${ this .method } .mock` );
224
227
fixtures .push (` ${ url .hostname }${ pathname} .mock` );
225
228
229
+ if (this .strictMode ) {
230
+ fixtures = fixtures .slice (0 , 1 );
231
+ }
232
+
226
233
return fixtures;
227
234
}
228
235
},
You can’t perform that action at this time.
0 commit comments