Describe the bug
When using vue router in tauri, it works in yarn tauri:serve mode but not work in built production generated by yarn 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 in yarn 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
Describe the bug
When using vue router in tauri, it works in
yarn tauri:servemode 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:buildworks as it does inyarn tauri:serveScreenshots

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