Pārlūkot izejas kodu

fix(tabbar): 替换console.log为uni.showToast显示提示信息

feige996 8 mēneši atpakaļ
vecāks
revīzija
3e91d23536
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      src/tabbar/index.vue

+ 4 - 1
src/tabbar/index.vue

@@ -13,7 +13,10 @@ defineOptions({
 // TODO 1/2: 中间的鼓包tabbarItem的开关
 const BULGE_ENABLE = false
 function handleClickBulge() {
-  console.log('点击了中间的鼓包tabbarItem')
+  uni.showToast({
+    title: '点击了中间的鼓包tabbarItem',
+    icon: 'none',
+  })
 }
 
 /** tabbarList 里面的 path 从 pages.config.ts 得到 */