-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
vue router does not work in tauri #2020
Comments
Hey @ikey4u , thanks for the issue! |
The wry team fixed the old history mode but now we need a fix for the custom protocol asset loading. For now the hash mode fixes it. |
@lucasfernog @Laegel I have changed the mode to hash mode, but it still does not work in built production, see the demo repo. |
I'm checking it right now. |
change to hash mode not work for vue 3 |
Describe the bug
When using vue router in tauri, it works in
yarn tauri:serve
mode but not work in built production generated byyarn tauri:build
.To Reproduce
I created a simple and dirty demo here https://github.com/ikey4u/tauri-vue to reproduce the problem
Expected behavior
The built binary generated by
yarn tauri:build
works as it does inyarn tauri:serve
Screenshots
When clicking vue router in built production, it shows as below
Platform and Versions (please complete the following information):
OS: Arch
Node: v16.3.0
NPM: 7.15.1
Yarn: 1.22.10
Rustc: 1.53.0
The text was updated successfully, but these errors were encountered: