From b6188a0e6831b1af4df52ea63d509d298848ac14 Mon Sep 17 00:00:00 2001 From: Rick <1450685+LinuxSuRen@users.noreply.github.com> Date: Fri, 6 Sep 2024 10:29:53 +0800 Subject: [PATCH] fix: the new test case request is always empty (#526) Co-authored-by: rick --- console/atest-ui/src/views/TestSuite.vue | 11 ++++++----- console/atest-ui/src/views/store.ts | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/console/atest-ui/src/views/TestSuite.vue b/console/atest-ui/src/views/TestSuite.vue index a863b01e..a80acbda 100644 --- a/console/atest-ui/src/views/TestSuite.vue +++ b/console/atest-ui/src/views/TestSuite.vue @@ -103,9 +103,10 @@ const testcaseFormRef = ref() const testCaseForm = reactive({ suiteName: '', name: '', - api: '', - method: 'GET', - request: {} + request: { + api: '', + method: 'GET' + } }) const rules = reactive>({ name: [{ required: true, message: 'Please input TestCase name', trigger: 'blur' }] @@ -380,7 +381,7 @@ const targetSuiteDuplicateName = ref('') v-if="suite.spec.kind !== 'tRPC' && suite.spec.kind !== 'gRPC'" >