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

微信小程序自定义tabBar栏,首次点击tab触发会导致tabBar栏的组件刷新,使判断高亮错误 #9600

Closed
HPLWC opened this issue Jun 25, 2021 · 2 comments
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@HPLWC
Copy link

HPLWC commented Jun 25, 2021

相关平台

微信小程序

复现仓库

https://github.com/HPLWC/taro_issue
小程序基础库: 2.16.1
使用框架: Vue 3

复现步骤

编译后点击tab栏即可复现

期望结果

点击后不触发tabBar的刷新或者高亮判断正确

实际结果

点击tab会触发tabBar栏刷新

环境信息

Taro CLI 3.2.10 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.18.3
      Yarn: 1.22.5 
      npm: 6.14.6

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jun 25, 2021
@HPLWC
Copy link
Author

HPLWC commented Jun 26, 2021

是在tabbar页面重新渲染聚焦,之前理解错了

@HPLWC HPLWC closed this as completed Jun 26, 2021
@ZeroJsus
Copy link

ZeroJsus commented Aug 3, 2021

是在tabbar页面重新渲染聚焦,之前理解错了

遇到了一样的问题 有没有办法处理呢 每个tab标签页面进去 都会触发一次 自定义tabbar页面的重新渲染

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants