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

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

@ -27,10 +27,17 @@
default: '0'
}
});
// 1.
const isInitialized = ref(false)
// 2. onShow
onShow(() => {
UserPersonCount()
UserPersonInfo()
setTitle()
UserPersonCount()
if (!isInitialized.value) {
UserPersonInfo()
isInitialized.value = true
}
setTitle()
})
const setTitle = () => {
let title = '修改体检人'

@ -39,7 +39,7 @@
<view class="report_content_line_content_wrapper">
<view class="report_content_line_content_content_wrapper" :class="[
!!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>
</view>

Loading…
Cancel
Save