li.shaoyi 3 年之前
父节点
当前提交
f0f0764c40
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/packages/mobile/views/home/index.vue

+ 1 - 1
src/packages/mobile/views/home/index.vue

@@ -59,7 +59,7 @@ const tabList: Tabbar[] = [
 ]
 
 const onChange = (index: number) => {
-  if (index !== 2) {
+  if (![1, 2].includes(index)) {
     componentId.value = tabList[index].name
   }
 }