10000 fix: update ja docs by kazupon · Pull Request #3214 · vuejs/vue-router · GitHub
[go: up one dir, main page]

Skip to content

fix: update ja docs #3214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Jun 7, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs(ja): update
NOTE: 23d87d8
  • Loading branch information
kazupon committed May 29, 2020
commit 69b641e3080713e5d0a68b216f8b95a668a49a87
2 changes: 1 addition & 1 deletion docs/ja/guide/advanced/navigation-guards.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ router.beforeEach((to, from, next) => {

- **`next(error)`**: (2.4.0+) `next` に渡された引数が `Error` インスタンスである場合、ナビゲーションは中止され、エラーは `router.onError()` を介して登録されたコールバックに渡されます。

**与えれれた任意のナビゲーションガードで、常に 1回だけ `next` 関数が呼び出されるようにしてください。それは複数回呼び出すことができますが、論理パスが重ならないときだけで、そうしないないとフックは決して解決されない、またはエラーが発生します。** 以下は、ユーザーが認証されていない場合、`/login` にリダレクトするための例です:
**与えれれたナビゲーションガードを通過する任意のパスにおいて、常に 1回だけ `next` 関数が呼び出されるようにしてください。それは複数回呼び出すことができますが、論理パスが重ならないときだけで、そうしないないとフックは決して解決されない、またはエラーが発生します。** 以下は、ユーザーが認証されていない場合、`/login` にリダレクトするための例です:

```js
// BAD
Expand Down
0