diff --git a/frontend/src/views/test-plan/report/detail/component/config.vue b/frontend/src/views/test-plan/report/detail/component/config.vue index e5bc04510c..ce64014eb7 100644 --- a/frontend/src/views/test-plan/report/detail/component/config.vue +++ b/frontend/src/views/test-plan/report/detail/component/config.vue @@ -211,12 +211,9 @@ } watch( - () => props.isGroup, + () => hasCaseList.value, () => { initDefaultConfig(); - }, - { - immediate: true, } ); @@ -389,6 +386,10 @@ confirmLoading.value = false; } } + + onBeforeMount(() => { + initDefaultConfig(); + });