]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
Update `pushWithQuery` example function (#1619)
authorRobert Komaromi <chipit24@users.noreply.github.com>
Sun, 27 Nov 2022 11:28:57 +0000 (06:28 -0500)
committerGitHub <noreply@github.com>
Sun, 27 Nov 2022 11:28:57 +0000 (12:28 +0100)
The `pushWithQuery` function accepts a `query` argument that was not used. I updated the docs to how I assume the function was mean to be set up.

packages/docs/guide/advanced/composition-api.md

index 39157449592d2b698e7b0ace6318a43287240a3a..09671c025c8d7d5be4b06c0e4e0ee95cf5f4e0c0 100644 (file)
@@ -24,6 +24,7 @@ export default {
         name: 'search',
         query: {
           ...route.query,
+          ...query,
         },
       })
     }