shish 1 rok temu
rodzic
commit
c796b03894
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      mallApp/src/pages/home/category.vue

+ 1 - 1
mallApp/src/pages/home/category.vue

@@ -20,7 +20,7 @@
 
     <scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop">
       <view v-for="(item,index) in tabbar" :key="index" class="tab-bar-item" :class="[currentTab==index ? 'active' : '']" :data-current="index" @tap.stop="swichNav($event ,item)" >
-        <text>{{item.categoryName}}</text>
+        <text style="text-align: center;">{{item.categoryName}}</text>
       </view>
       <view style="height:150upx"></view>
     </scroll-view>