diff --git a/src/views/planMange/monthlyPlan/edit.vue b/src/views/planMange/monthlyPlan/edit.vue index dc976b9..80efc82 100644 --- a/src/views/planMange/monthlyPlan/edit.vue +++ b/src/views/planMange/monthlyPlan/edit.vue @@ -1120,9 +1120,19 @@ const getDetail = async () => { } } -onMounted(() => { - getDetail() -}) +watch( + () => route.query.monthlyPlanId, + (newId) => { + if (newId) { + getDetail() + } + }, + { immediate: true }, +) + +// onMounted(() => { +// getDetail() +// })