From 3cad440eb53eee9bad955c614a6794c0037fd80d Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Thu, 12 Sep 2024 15:44:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86=E8=AF=A6=E6=83=85=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E9=87=8D=E5=A4=8D=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/bug-management/components/bugCaseTab.vue | 2 +- .../bug-management/components/bugHistoryTab.vue | 1 - .../views/bug-management/components/commentTab.vue | 13 +++++++++---- .../components/addDefectDrawer/index.vue | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/bug-management/components/bugCaseTab.vue b/frontend/src/views/bug-management/components/bugCaseTab.vue index 1ee55fcc5a..dd98cf9e5b 100644 --- a/frontend/src/views/bug-management/components/bugCaseTab.vue +++ b/frontend/src/views/bug-management/components/bugCaseTab.vue @@ -125,7 +125,7 @@ const currentProjectId = computed(() => appStore.currentProjectId); const props = defineProps<{ - bugId: string; // 缺陷id + bugId?: string; // 缺陷id }>(); const emit = defineEmits<{ diff --git a/frontend/src/views/bug-management/components/bugHistoryTab.vue b/frontend/src/views/bug-management/components/bugHistoryTab.vue index e50c2ffdd1..50bece45d9 100644 --- a/frontend/src/views/bug-management/components/bugHistoryTab.vue +++ b/frontend/src/views/bug-management/components/bugHistoryTab.vue @@ -55,7 +55,6 @@ scroll: { x: '100%' }, selectable: false, noDisable: false, - debug: true, }); const fetchData = async (id: string) => { diff --git a/frontend/src/views/bug-management/components/commentTab.vue b/frontend/src/views/bug-management/components/commentTab.vue index c2fdab02e2..202af9140d 100644 --- a/frontend/src/views/bug-management/components/commentTab.vue +++ b/frontend/src/views/bug-management/components/commentTab.vue @@ -102,13 +102,18 @@ } }); + watch( + () => props.bugId, + (val) => { + if (val) { + initData(props.bugId); + } + } + ); + defineExpose({ initData, }); - - watchEffect(() => { - initData(props.bugId); - });