diff --git a/frontend/src/views/test-plan/testPlan/components/actionModal.vue b/frontend/src/views/test-plan/testPlan/components/actionModal.vue index 8d7cbfdf5c..b66f609210 100644 --- a/frontend/src/views/test-plan/testPlan/components/actionModal.vue +++ b/frontend/src/views/test-plan/testPlan/components/actionModal.vue @@ -76,7 +76,7 @@ } } - function getDeleteTip() { + const contentTip = computed(() => { switch (props.record && props.record.status) { case 'ARCHIVED': return t('testPlan.testPlanIndex.deleteArchivedPlan'); @@ -87,10 +87,6 @@ default: return t('testPlan.testPlanIndex.deletePendingPlan'); } - } - - const contentTip = computed(() => { - return getDeleteTip(); }); diff --git a/frontend/src/views/test-plan/testPlan/components/batchEditModal.vue b/frontend/src/views/test-plan/testPlan/components/batchEditModal.vue index 41e954d774..61a3c32a56 100644 --- a/frontend/src/views/test-plan/testPlan/components/batchEditModal.vue +++ b/frontend/src/views/test-plan/testPlan/components/batchEditModal.vue @@ -71,7 +71,8 @@