We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9be7d7 commit 448d3e7Copy full SHA for 448d3e7
README.md
@@ -65,6 +65,8 @@ const routes = [
65
{
66
path: "/movies",
67
component: moviesPage,
68
+
69
+ // Optional
70
meta: {
71
isVertical: true,
72
// Example actions to dispatch automatically when page is visited
@@ -80,6 +82,18 @@ const routes = [
80
82
showNavigationButtons: null,
81
83
},
84
85
86
+ // Optional, per route guards are supported
87
+ // More info: https://next.router.vuejs.org/guide/advanced/navigation-guards.html#per-route-guard
88
+ beforeEnter: (to, from) => {
89
+ if (to.props.passUser) {
90
+ // Continue navigation
91
+ return true;
92
+ }
93
94
+ // Reject the navigation
95
+ return false;
96
+ },
97
98
];
99
@@ -105,7 +119,7 @@ const router = createRouter(
105
119
106
120
// Do something straight before navigation or adjust NS routing settings
107
121
routeBackCallback: (_to, options) => {
108
- //
122
+ // Do something...
109
123
110
124
111
125
// Set Vue Instance (Vue.prototype by default)
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments