vuepress / core

Vue-Powered Static Site Generator
https://vuepress.vuejs.org
MIT License
2.17k stars 922 forks source link

[Bug report] router路径相同参数不同,获取不到对象 #1470

Closed qqlcx5 closed 5 months ago

qqlcx5 commented 5 months ago

Description

我2年前写了一个主题,最近升级最新版本获取不到对象了。 第一次/tags/?tag=shuffle跳转到/tags/?tag=clone函数useRoute()获取不到信息 image

Reproduction

https://github.com/qqlcx5/vuepress-theme-neo

Used Package Manager

npm

System Info

System:
    OS: Windows 10 10.0.18363
    CPU: (12) x64 Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz
    Memory: 21.11 GB / 31.90 GB
  Binaries:
    Node: 16.20.2 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 8.19.4 - C:\Program Files\nodejs\npm.CMD
  Utilities:
    Git: 2.41.0.
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.18362.449.0)
  npmPackages:
    @vuepress/bundler-vite: Not Found
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli: Not Found
    @vuepress/client: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/core: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/markdown: Not Found
    @vuepress/plugin-active-header-links: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-back-to-top: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-container: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-docsearch: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-external-link-icon: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-git: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-google-analytics: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-medium-zoom: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-nprogress: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-palette: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-prismjs: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-pwa: Not Found
    @vuepress/plugin-pwa-popup: Not Found
    @vuepress/plugin-register-components: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-search: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-shiki: Not Found
    @vuepress/plugin-theme-data: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-toc: Not Found
    @vuepress/shared: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/theme-default: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/utils: 2.0.0-rc.0 => 2.0.0-rc.0
    vue: ^3.3.8 => 3.4.15
    vue-loader: Not Found
    vue-router: ^4.2.5 => 4.2.5
    vuepress: 2.0.0-rc.0 => 2.0.0-rc.0
    vuepress-vite: Not Found
    vuepress-webpack: Not Found
Mister-Hope commented 5 months ago

Duplicate of https://github.com/vuepress/ecosystem/issues/27