Browse Source

fix
修复编译报错

LINZHENYANG\林振洋 1 month ago
parent
commit
32522b1255
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/st1/business/tabbar/homePage/homePage.vue

+ 2 - 2
pages/st1/business/tabbar/homePage/homePage.vue

@@ -118,7 +118,7 @@
           </view>
           <view class="floot_lineFeed displayFlexLeft">
             <view class="floot_list menuList" :class="{ 'fw_25': item.IsShow == '1' }"
-              v-for="(item, index) in menuObj?.Children[0].Children" :key="index" @click="menuClickFn(item)">
+              v-for="(item, index) in menuObj?.Children?.[0]?.Children" :key="index" @click="menuClickFn(item)">
               <view v-if="item.IsShow == '1'" class="displayFlexCol">
                 <image class="menuIcon" :src="item.Icon"></image>
                 <text class="menuText">{{ item.MenuName }}</text>
@@ -158,7 +158,7 @@
             </view>
           </view>
           <view class="hosMenuInfo">
-            <view v-for="(item, index) in menuObj.Children[1].Children" :key="index" @click="menuClickFn" :item="item"
+            <view v-for="(item, index) in menuObj?.Children?.[1]?.Children" :key="index" @click="menuClickFn" :item="item"
               :class="`${index >= 1 ? 'hosInfoBox_item' : 'hosInfoBox_item_fir'} ${index == 2 ? 'hosInfoBox_itemT' : ''}`">
               <view v-if="item?.IsShow == '1'">
                 <image class="hosInfoBox_itemImg" :src="item.Icon"></image>