Skip to content

Commit 84bd10d

Browse files
committed
📝 add notes about using hash mode with vue-router (SimulatedGREG#67) [skip ci]
1 parent fc24a43 commit 84bd10d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/using_the_file_structure.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ Routes are held in `app/src/routes.js` and defined like so...
3939
```
4040
...where both `<routePath>` and `<routeName>` are variables. These routes are imported to `app/src/main.js` and are then attached to the component tree using the `<router-view></router-view>` directive in `app/src/App.vue`.
4141

42+
#### Notice
43+
When using `vue-router`, refrain from using [**HTML5 History Mode**](http://router.vuejs.org/en/essentials/history-mode.html). This mode is strictly meant for serving files over the `http` protocol and does not work properly with the `file` protocol that electron serves files with. The default `hash` mode is what you will need.
44+
4245
### vuex modules
4346
Describing vuex is not the easiest thing to do, so please read [this](http://vuex.vuejs.org/en/intro.html) for a better understanding of what problem it tries to solve and how it works.
4447

0 commit comments

Comments
 (0)