Skip to content

vue router does not work in tauri #2020

@ikey4u

Description

@ikey4u

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
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions