提交 3540017b authored 作者: 刘宇琪's avatar 刘宇琪

save

上级 c71276c1
...@@ -72,12 +72,9 @@ const emit = defineEmits<{ ...@@ -72,12 +72,9 @@ const emit = defineEmits<{
const predictionData = ref<PredictionAnalysis | null>(null) const predictionData = ref<PredictionAnalysis | null>(null)
// 获取预测分析数据 // 获取预测分析数据
onMounted(async () => { onMounted(async () => {
console.log('[v0] Step3 mounted, fetching data...') const data = await fetchPredictionAnalysis()
const data = await fetchPredictionAnalysis() predictionData.value = data
console.log('[v0] Data fetched:', data)
predictionData.value = data
console.log('[v0] predictionData set:', predictionData.value)
}) })
// 根据索引和progressLevel返回进度条格子的类名 // 根据索引和progressLevel返回进度条格子的类名
......
...@@ -78,7 +78,7 @@ onMounted(async () => { ...@@ -78,7 +78,7 @@ onMounted(async () => {
const [stepsData, predictionData] = await Promise.all([ const [stepsData, predictionData] = await Promise.all([
fetchSteps(), fetchSteps(),
getProgressPrediction(billId.value).catch(err => { getProgressPrediction(billId.value).catch(err => {
console.error('[v0] 获取预测数据失败:', err) console.error(' 获取预测数据失败:', err)
return null return null
}) })
]) ])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论