Commit ec05c6fe by cen

fix: 优化

1 parent 43fede05
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<view class="tab-container"> <view class="tab-container">
<scroll-view scroll-x enable-flex class="tab-scroll"> <scroll-view scroll-x enable-flex class="tab-scroll">
<template v-for="(tab, index) in tabs"> <template v-for="(tab, index) in tabs">
<view v-if="!tab.hidden" :key="index" :class="['tab-item', { active: activeTabKey === tab.key }]" @click.stop="switchTabByKey(tab.key)"> <view v-if="!tab.hidden" :key="tab.key" :class="['tab-item', { active: activeTabKey === tab.key }]" @click.stop="switchTabByKey(tab.key)">
{{ tab.name }} {{ tab.name }}
</view> </view>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!