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 211211 return fixtures;
212212 }
213213
214+ let pathname = url .pathname .replace (/ \/ $ / , ' ' );
214215 let searchParams = Array .from (url .searchParams .entries ());
216+
215217 if (searchParams .length ) {
216218 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` );
219221 }
220222
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` );
223225
224226 return fixtures;
225227 }
You can’t perform that action at this time.
0 commit comments