Commit ff405263 authored by spc's avatar spc

feedingIndex

parent e2d2db2e
...@@ -427,7 +427,7 @@ import BabySwitchPopup from '@/components/BabySwitchPopup.vue' ...@@ -427,7 +427,7 @@ import BabySwitchPopup from '@/components/BabySwitchPopup.vue'
import popupTip from '../../components/popup-tip/popup-tip.vue' import popupTip from '../../components/popup-tip/popup-tip.vue'
import { fetchFeedingJSON, feedingHome, feedingRecords, feedingFoodsCustom, feedingFoodsCustomAdd, feedingFoodsCustomDelete, feedingTimerStart, feedingTimerStop, feedingVoiceUpload, feedingVoiceResult } from '@/api/feeding.js' import { fetchFeedingJSON, feedingHome, feedingRecords, feedingFoodsCustom, feedingFoodsCustomAdd, feedingFoodsCustomDelete, feedingTimerStart, feedingTimerStop, feedingVoiceUpload, feedingVoiceResult } from '@/api/feeding.js'
import { useUserStore } from '@/stores/user.js' import { useUserStore } from '@/stores/user.js'
import { jump, JumpType } from '../../utils' import { jump, JumpType, showLoading } from '../../utils'
import { getHealthField } from "@/api/common"; import { getHealthField } from "@/api/common";
// 弹窗引用 // 弹窗引用
...@@ -751,9 +751,16 @@ const onPopupTipBabyChange = async () => { ...@@ -751,9 +751,16 @@ const onPopupTipBabyChange = async () => {
} }
// 页面显示时刷新数据 // 页面显示时刷新数据
onShow(() => { onShow(async () => {
console.log('页面显示,刷新数据...') console.log('页面显示,刷新数据...')
if (!babyId.value) {
isTip.value = true
await loadBabyInfo()
} else {
isTip.value = false
}
// 刷新宝宝信息和首页数据 // 刷新宝宝信息和首页数据
loadHomeData() loadHomeData()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment