Skip to content

Commit

Permalink
docs(ja): update navigation docs (#2797)
Browse files Browse the repository at this point in the history
  • Loading branch information
monmonmon authored and kazupon committed Jun 4, 2019
1 parent 9b01cbc commit 5b9cb7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/ja/guide/essentials/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ router.push({ name: 'user', params: { userId: '123' } })
router.push({ path: 'register', query: { plan: 'private' } })
```

**注意**: `params` は、上記例に示すように、`path` が提供されている場合は無視されます。これは `query` に対するケースとは異なります。
代わりに、ルートの `name` か任意のパラメータを付与した `path` 全体を手動で指定する必要があります:
**注意**: `path` が渡された場合は `params` は無視されます(`query` は上の例の通り無視されません)。代わりに `name` でルート名を渡すか、`path` にすべてのパラメータを含める必要があります:

```js
const userId = '123'
Expand Down

0 comments on commit 5b9cb7b

Please sign in to comment.