[Bug Report] Tabbar 标签栏 路由模式下 v-model绑定出错
Opened this issue · 2 comments
HHsomeHand commented
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
github-actions commented
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 commented
最小化的 GitHub 仓库地址, 大佬们加油 : https://github.com/HHsomeHand/vant-issue