consistent query parameter handling between client and server - fixes #497

This commit is contained in:
Rich Harris
2018-10-27 11:36:18 -04:00
parent ab52aabd1d
commit eadefd996b
5 changed files with 33 additions and 15 deletions

View File

@@ -1,9 +1 @@
<h1>message: "{message}"</h1>
<script>
export default {
preload({ query }) {
return query;
}
};
</script>
<h1>{JSON.stringify(query)}</h1>

View File

@@ -3,5 +3,6 @@
<a href="a">a</a>
<a href="ambiguous/ok.json">ok</a>
<a href="echo-query?message">ok</a>
<a href="echo-query?p=one&p=two">ok</a>
<div class='hydrate-test'></div>