We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vben Admin V5
这个是我的路由定义, bId是可选值
这个是bId为空时, 路由把params的:bid部分当做静态值, 正常来说应是 /listPreparation
这个是在menu里打印的一些值
希望可以用路由的name来判断当前菜单和标签页的高亮和生成, 用fullPath和path的话, 同一个路由的params和query的值变化时, 都会生成新的标签页, 或者是高亮状态和页面刷新的异常
定义和我一样的路由, 页面用两个按钮调用下面函数就可以复现
push({ name: currentRoute.value.name, params: { bId: currentNode.value!.ID, // 两次id不同即可 }, }); ### System Info ```shell /
The text was updated successfully, but these errors were encountered:
哥, 最后有处理方案吗?
Sorry, something went wrong.
我想到的就是用路由的name来当做菜单和标签页的key值, 不过我看了源码里基本都是用fullPath或者path, 这么改的话改动很大, 暂时没有去尝试, 不知道有没有别的好的方法
我找到方法了。 加上这两个参数, 然后 dynamicLevel:1 。 这样可以保证不会新增tab
No branches or pull requests
Version
Vben Admin V5
Describe the bug?
希望可以用路由的name来判断当前菜单和标签页的高亮和生成, 用fullPath和path的话, 同一个路由的params和query的值变化时, 都会生成新的标签页, 或者是高亮状态和页面刷新的异常
Reproduction
定义和我一样的路由, 页面用两个按钮调用下面函数就可以复现
Relevant log output
Validations
The text was updated successfully, but these errors were encountered: