修改自定义数据不更新问题

master
于肖磊 2025-08-07 09:56:00 +08:00
parent 0a8d9a8ec4
commit a398ff25dd
2 changed files with 1 additions and 2 deletions

View File

@ -327,7 +327,7 @@
tabs_click_event(tabs_id, is_micro_page, index) {
this.setData({
tabs_active_index: index,
data_key: Math.random(),
diy_key: Math.random().toString(36).substring(2),
})
setTimeout(() => {
this.setData({

View File

@ -5,7 +5,6 @@
<view :style="style_margin_container">
<view class="tabs-contents bs-bb pr" :style="style_container">
<view :class="top_up == '1' ? 'bs-bb' : 'wh-auto bs-bb'" :style="style_img_container">
{{ propIsRotatingBackground }}
<component-diy-modules-tabs-view :propKey="propKey" :propValue="tabs_data" :propIsTabsIcon="true" :propTop="propTop" :propsTabsContainer="propsTabsContainer + (propIsRotatingBackground ? propBgStyle : '')" :propIsRotatingBackground="propIsRotatingBackground" :propBgImgStyle="propBgImgStyle" :propsTabsImgContainer="propsTabsImgContainer" :propStyle="propStyle" :propTabsSlidingFixedBg="tabs_sliding_fixed_bg" :propsTabsSlidingFixedStyle="propIsRotatingBackground ? propsTabsSlidingFixedStyle : ''" @onTabsTap="tabs_click_event" @tabsZindex="tabsZindex"></component-diy-modules-tabs-view>
</view>
</view>