diff --git a/src/views/planMange/dailyPlan/edit.vue b/src/views/planMange/dailyPlan/edit.vue index 0c8102a..1a0eaf1 100644 --- a/src/views/planMange/dailyPlan/edit.vue +++ b/src/views/planMange/dailyPlan/edit.vue @@ -934,11 +934,21 @@ watch( { immediate: true }, ) -onMounted(() => { - if (route.query.id) { - getDetail() - } -}) +watch( + () => route.query.id, + (newId) => { + if (newId) { + getDetail() + } + }, + { immediate: true }, +) + +// onMounted(() => { +// if (route.query.id) { +// getDetail() +// } +// })