浏览代码

产品中心active样式调整

wangtao 3 月之前
父节点
当前提交
7015c18be1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/services/index.vue

+ 1 - 1
src/views/services/index.vue

@@ -129,7 +129,7 @@ export default defineComponent({
             <section class="product-grid-section " style="text-align: center;position:absolute;bottom:0"    :style="{'width': '100%'}" >
                 <ul class="cannot_selected tabs_selected" >
                     <a v-for="(item,index) in store.state.columnTypes"  :class="item.id == store.state.acitveId ? 'active' : ''"
-                    v-on:click="facilityClick(item)" :style="{'width':(1/store.state.columnTypes.length*100)+'%' }" :key="index">{{item.categoryName}}</a>
+                    v-on:click="facilityClick(item),store.state.acitveId = item.id" :style="{'width':(1/store.state.columnTypes.length*100)+'%' }" :key="index">{{item.categoryName}}</a>
                 </ul>
             </section>
         </section>