src/pages/user/index.vue
@@ -95,13 +95,16 @@ onShow(() => { getUserInfoData(); uni.setStorageSync("lastTab", "user"); // #ifndef MP-WEIXIN uni.setTabBarItem({ index: 2, text: "", iconPath: "static/images/tabbar/drone.png", selectedIconPath: "static/images/tabbar/drone.png", index: 2, // Tab 的索引(从0开始) visible: false, }); uni.setTabBarItem({ index: 3, // Tab visible: true, }); // #endif }); </script> <style scoped lang="scss">