fix:显示时间

This commit is contained in:
MJ 2025-08-23 23:45:48 +08:00
parent defc2ab5f1
commit 29f200adb9
2 changed files with 6 additions and 2 deletions

View File

@ -281,7 +281,7 @@ onMounted(() => {
<text class="label">语感训练句子</text> <text class="label">语感训练句子</text>
</tui-grid-item> </tui-grid-item>
<tui-grid-item :cell="2"> <tui-grid-item :cell="2">
<view class="value">{{ showChildData.learnTime || 0 }}</view> <view class="value">{{ secondsToHours(showChildData.learnTime) }}</view>
<text class="label">有效学习时长</text> <text class="label">有效学习时长</text>
</tui-grid-item> </tui-grid-item>
</tui-grid> </tui-grid>
@ -311,7 +311,7 @@ onMounted(() => {
<text class="label">订正正确</text> <text class="label">订正正确</text>
</tui-grid-item> </tui-grid-item>
<tui-grid-item :cell="2"> <tui-grid-item :cell="2">
<view class="value">{{ showChildData.learnTime || 0 }}</view> <view class="value">{{ secondsToHours(showChildData.learnTime) }}</view>
<text class="label">有效学习时长</text> <text class="label">有效学习时长</text>
</tui-grid-item> </tui-grid-item>
</tui-grid> </tui-grid>

View File

@ -18,6 +18,10 @@ const show = computed({
get: () => props.modelValue, get: () => props.modelValue,
set: val => { set: val => {
emit('update:modelValue', val) emit('update:modelValue', val)
if (!val) {
customMoney.value = ''
moneyType.value = defaultMoneyType
}
}, },
}) })