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

[Bug Report] Tabbar 标签栏 路由模式下 v-model绑定出错 #13172

Open
HHsomeHand opened this issue Oct 25, 2024 · 2 comments
Open

[Bug Report] Tabbar 标签栏 路由模式下 v-model绑定出错 #13172

HHsomeHand opened this issue Oct 25, 2024 · 2 comments

Comments

@HHsomeHand
Copy link

HHsomeHand commented Oct 25, 2024

Reproduction Link

https://github.com/HHsomeHand/vant-issue

Vant Version

4.9.8

Describe the Bug

代码:

active = ref(0);
<van-tabbar v-model="active" route>
  <van-tabbar-item to="/home">home</van-tabbar-item>
  <van-tabbar-item to="/favor">favor</van-tabbar-item>
</van-tabbar>

然后浏览器地址栏内输入"www.xxx.com/favor", active的值是0

Reproduce Steps

active = ref(0);
<van-tabbar v-model="active" route>
  <van-tabbar-item to="/home">home</van-tabbar-item>
  <van-tabbar-item to="/favor">favor</van-tabbar-item>
</van-tabbar>

Device / Browser

chrome

Copy link

Hello @HHsomeHand. Please provide an online reproduction demo by codesandbox or a minimal GitHub repository. Issues marked with need reproduce will be closed if there is no activity within 3 days. For background, please refer to Why reproductions are required.

你好 @HHsomeHand, 我们需要你提供一个在线的重现示例,以便于我们帮你排查问题。你可以通过点击 codesandbox 创建,或者提供一个最小化的 GitHub 仓库。如果 3 天内未跟进,此 issue 将会被自动关闭。背景请参考 为什么需要最小重现

@HHsomeHand
Copy link
Author

最小化的 GitHub 仓库地址, 大佬们加油 : https://github.com/HHsomeHand/vant-issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants