设置角标
uni.setTabBarBadge({
index: 0,
text: '1'
})
移除角标
uni.removeTabBarBadge({
index:2
})
使用位置在app.vue 文件中,在页面设置不了。
uni-app 角标设置
uni.setTabBarBadge({
index: 0,
text: '1'
})
uni.removeTabBarBadge({
index:2
})
使用位置在app.vue 文件中,在页面设置不了。
uni-app 角标设置