Skip to content
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

Browser forword&backword not trigger onAfterRouteChanged #3226

Closed
maicss opened this issue Nov 19, 2023 · 0 comments
Closed

Browser forword&backword not trigger onAfterRouteChanged #3226

maicss opened this issue Nov 19, 2023 · 0 comments
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@maicss
Copy link

maicss commented Nov 19, 2023

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.
@maicss maicss added the bug: pending triage Maybe a bug, waiting for confirmation label Nov 19, 2023
@brc-dd brc-dd closed this as completed in 60fc8fd Nov 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

1 participant