-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
bug: pending triageMaybe a bug, waiting for confirmationMaybe a bug, waiting for confirmation
Description
Describe the bug
Browser forword&backword not trigger router.onAfterRouteChanged
Reproduction
https://github.com/maicss/website/blob/main/.vitepress/theme/GiscusLayout.vue#L161-L170
When click forword or backward of browser, keeping print 111 but not 222
Expected behavior
Should trigger router.onAfterRouteChanged
System Info
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
Memory: 14.63 GB / 23.94 GB
Binaries:
Node: 20.9.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.21 - C:\Program Files\nodejs\yarn.CMD
npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
pnpm: 8.10.5 - C:\Program Files\nodejs\pnpm.CMD
Browsers:
Edge: Spartan (44.19041.3636.0), Chromium (119.0.2151.72)
npmPackages:
vitepress: 1.0.0-rc.28 => 1.0.0-rc.28
### Additional context
_No response_
### Validations
- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).
- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)
- [X] Read the [docs](https://vitepress.dev).
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
bug: pending triageMaybe a bug, waiting for confirmationMaybe a bug, waiting for confirmation