File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ The event ``vue:before-mount`` is called before a component is mounted on the pa
105
105
106
106
// Example with Vue Router
107
107
const router = VueRouter .createRouter ({
108
+ history: VueRouter .createWebHashHistory (),
108
109
routes: [
109
110
/* ... */
110
111
],
@@ -113,7 +114,11 @@ The event ``vue:before-mount`` is called before a component is mounted on the pa
113
114
app .use (router);
114
115
});
115
116
116
- The event ``vue:before-mount `` is called when a component has been mounted on the page:
117
+ .. note ::
118
+ When using Vue Router, it is recommended to use "hash" (or "memory") history mode,
119
+ to prevent your Vue routes from being served through Symfony controllers.
120
+
121
+ The event ``vue:mount `` is called when a component has been mounted on the page:
117
122
118
123
.. code-block :: js
119
124
You can’t perform that action at this time.
0 commit comments