File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
docs/.vuepress/components Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 211
211
return fixtures;
212
212
}
213
213
214
+ let pathname = url .pathname .replace (/ \/ $ / , ' ' );
214
215
let searchParams = Array .from (url .searchParams .entries ());
216
+
215
217
if (searchParams .length ) {
216
218
const search = this .formatSearchParams (searchParams);
217
- fixtures .push (` ${ url .hostname }${ url . pathname } .${ search} .${ this .method } .mock` );
218
- fixtures .push (` ${ url .hostname }${ url . pathname } .${ search} .mock` );
219
+ fixtures .push (` ${ url .hostname }${ pathname} .${ search} .${ this .method } .mock` );
220
+ fixtures .push (` ${ url .hostname }${ pathname} .${ search} .mock` );
219
221
}
220
222
221
- fixtures .push (` ${ url .hostname }${ url . pathname } .${ this .method } .mock` );
222
- fixtures .push (` ${ url .hostname }${ url . pathname } .mock` );
223
+ fixtures .push (` ${ url .hostname }${ pathname} .${ this .method } .mock` );
224
+ fixtures .push (` ${ url .hostname }${ pathname} .mock` );
223
225
224
226
return fixtures;
225
227
}
You can’t perform that action at this time.
0 commit comments