Ver Fonte

update 更新

wangxy há 2 meses atrás
pai
commit
8ae125b9dd
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      components/MtaTabBar/MtaTabBar.vue

+ 3 - 2
components/MtaTabBar/MtaTabBar.vue

@@ -1,7 +1,7 @@
 <template>
   <view class="custom-tabbar">
     <view v-for="(item, index) in tabList" :key="index" @click="switchTab(item)">
-      <image :src="activeIndex === index ? item.selectedIcon : item.icon" />
+      <!-- <image :src="activeIndex === index ? item.selectedIcon : item.icon" /> -->
       <text :style="{ color: activeIndex === index ? selectedColor : defaultColor }">
         {{ item.text }}
       </text>
@@ -23,7 +23,8 @@
 	})
 	
 	function switchTab(item) {
-		 uni.switchTab({ url: item.pagePath });
+		console.log('item', item)
+		 uni.reLaunch({ url: item.pagePath });
 	}
 </script>