From 2a51b6b00819ce5e92d69b5ed2e7162281a6cf2e Mon Sep 17 00:00:00 2001 From: teukkk Date: Mon, 25 Mar 2024 16:09:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E6=89=A7=E8=A1=8C=E7=BB=93=E6=9E=9C=E5=88=97?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E6=A0=B7=E5=BC=8F&=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E7=9A=84=E7=8E=AF=E5=A2=83=E4=B8=8B=E6=8B=89=E5=80=BC=E4=BC=98?= =?UTF-8?q?=E5=85=88=E4=BD=BF=E7=94=A8=E5=90=8E=E7=AB=AF=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api-test/components/environmentSelect.vue | 7 +++---- .../components/management/case/caseDetail.vue | 8 ++++---- .../components/management/case/caseTable.vue | 15 +++++++++++---- .../case/createAndEditCaseDrawer.vue | 10 ++++++---- .../case/tabContent/tabCaseExecuteHistory.vue | 19 +++++++++++-------- .../report/component/reportStatus.vue | 5 +++++ 6 files changed, 40 insertions(+), 24 deletions(-) diff --git a/frontend/src/views/api-test/components/environmentSelect.vue b/frontend/src/views/api-test/components/environmentSelect.vue index fa1b348791..b31ab4f0de 100644 --- a/frontend/src/views/api-test/components/environmentSelect.vue +++ b/frontend/src/views/api-test/components/environmentSelect.vue @@ -30,8 +30,7 @@ const appStore = useAppStore(); const { openNewPage } = useOpenNewPage(); - const currentEnv = ref(''); - + const currentEnv = defineModel('currentEnv', { default: '' }); const currentEnvConfig = ref(); const envLoading = ref(false); const envOptions = ref([]); @@ -54,8 +53,8 @@ label: item.name, value: item.id, })); - currentEnv.value = res[0]?.id || ''; - initEnvironment(); + currentEnv.value = currentEnv.value.length ? currentEnv.value : res[0]?.id; + await initEnvironment(); } catch (error) { // eslint-disable-next-line no-console console.log(error); diff --git a/frontend/src/views/api-test/management/components/management/case/caseDetail.vue b/frontend/src/views/api-test/management/components/management/case/caseDetail.vue index a88b79da80..5e5ae9f326 100644 --- a/frontend/src/views/api-test/management/components/management/case/caseDetail.vue +++ b/frontend/src/views/api-test/management/components/management/case/caseDetail.vue @@ -3,7 +3,7 @@ +