I'm using the push API because I couldn't figure out the component API for router-link on devs. There are no errors shown, everything compiles. When I click a link it'll show up in the navigation, but nothing happens.
To Reproduce
Add vue-router
Configure vue-router with hash routing
Use the router API to navigate with push or <router-link (same API)
Expected behaviour
The application routes from one page to the next.
Screenshots
No response
Attempted Fixes
No response
System Details
Wails CLI v2.0.0-beta.36
Scanning system - Please wait (this may take a long time)...Done.
System
------
OS: Pop!_OS
Version: 22.04
ID: pop
Go Version: go1.17.6
Platform: linux
Architecture: amd64
Wails
------
Version: v2.0.0-beta.36
Package Manager: apt
Dependency Package Name Status Version
---------- ------------ ------ -------
*docker docker.io Installed 20.10.15
gcc build-essential Installed 11.2.0
libgtk-3 libgtk-3-dev Installed 3.24.33-1ubuntu1
libwebkit libwebkit2gtk-4.0-dev Installed 2.36.0-2ubuntu1
npm npm Installed 8.1.4
*nsis nsis Available 3.08-2
pkg-config pkg-config Installed 0.29.2
* - Optional Dependency
Diagnosis
---------
Your system is ready for Wails development!
Optional package(s) installation details:
- nsis: sudo apt install nsis
If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony
Description
I have configured the vue-router according to the instructions on wails.io.
Relevant files:
main.js
router/index.js
App.vue
I'm using the push API because I couldn't figure out the component API for router-link on devs. There are no errors shown, everything compiles. When I click a link it'll show up in the navigation, but nothing happens.
To Reproduce
vue-router
vue-router
with hash routingpush
or<router-link
(same API)Expected behaviour
The application routes from one page to the next.
Screenshots
No response
Attempted Fixes
No response
System Details