录入信息时,切换APP返回 保留输入数据

main
岩仔88 2 months ago
parent 0d26adada1
commit 758adc5229

@ -27,9 +27,16 @@
default: '0' default: '0'
} }
}); });
// 1.
const isInitialized = ref(false)
// 2. onShow
onShow(() => { onShow(() => {
UserPersonCount() UserPersonCount()
if (!isInitialized.value) {
UserPersonInfo() UserPersonInfo()
isInitialized.value = true
}
setTitle() setTitle()
}) })
const setTitle = () => { const setTitle = () => {

@ -39,7 +39,7 @@
<view class="report_content_line_content_wrapper"> <view class="report_content_line_content_wrapper">
<view class="report_content_line_content_content_wrapper" :class="[ <view class="report_content_line_content_content_wrapper" :class="[
!!ii.icon ? 'report_content_line_content_content_red_wrapper' : '' !!ii.icon ? 'report_content_line_content_content_red_wrapper' : ''
]">{{ ii.icon }}{{ ii.content }}</view> ]">{{ ii.content }} <span style="font-weight: bolder;">{{ ii.icon }}</span></view>
<view v-if="!!ii.desc" class="report_content_line_content_desc_wrapper">{{ ii.desc }}</view> <view v-if="!!ii.desc" class="report_content_line_content_desc_wrapper">{{ ii.desc }}</view>
</view> </view>
</view> </view>

Loading…
Cancel
Save