From 768185db2da23227e0ce6881486e1c247d96a1ef Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Tue, 10 Dec 2024 16:02:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=AA=E6=9C=89=E7=B3=BB=E7=BB=9F=E6=88=90?= =?UTF-8?q?=E5=91=98=E8=A7=92=E8=89=B2=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/taskCenter/component/batchTaskReportDrawer.vue | 3 +++ frontend/src/views/taskCenter/component/caseTaskTable.vue | 3 +++ 2 files changed, 6 insertions(+) diff --git a/frontend/src/views/taskCenter/component/batchTaskReportDrawer.vue b/frontend/src/views/taskCenter/component/batchTaskReportDrawer.vue index 8797bf1080..96a1d4779d 100644 --- a/frontend/src/views/taskCenter/component/batchTaskReportDrawer.vue +++ b/frontend/src/views/taskCenter/component/batchTaskReportDrawer.vue @@ -268,6 +268,9 @@ const shareTime = ref(''); async function getTime() { + if (!appStore.currentProjectId) { + return; + } try { const res = await getShareTime(appStore.currentProjectId); const match = res.match(/^(\d+)([MYHD])$/); diff --git a/frontend/src/views/taskCenter/component/caseTaskTable.vue b/frontend/src/views/taskCenter/component/caseTaskTable.vue index 2473491c48..dabaed64df 100644 --- a/frontend/src/views/taskCenter/component/caseTaskTable.vue +++ b/frontend/src/views/taskCenter/component/caseTaskTable.vue @@ -677,6 +677,9 @@ const shareTime = ref(''); async function getTime() { + if (!appStore.currentProjectId) { + return; + } try { const res = await getShareTime(appStore.currentProjectId); const match = res.match(/^(\d+)([MYHD])$/);