From 6eb05354b3d5fab7abea14eee3013b46a5852226 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Fri, 19 Apr 2024 19:17:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=BF=AB?= =?UTF-8?q?=E9=80=9F=E5=88=9B=E5=BB=BA=E5=B9=B6=E7=BB=A7=E7=BB=AD=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E7=BC=BA=E9=99=B7=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1037223 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037223 --- .../components/tabContent/tabBug/addDefectDrawer.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/addDefectDrawer.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/addDefectDrawer.vue index af0e97ccb0..56eec316ad 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/addDefectDrawer.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabBug/addDefectDrawer.vue @@ -67,6 +67,7 @@ const { t } = useI18n(); const templateOptions = ref([]); + const defaultTemplateId = ref(''); // TODO缺陷类型 const initForm: any = { @@ -99,6 +100,7 @@ const drawerLoading = ref(false); function handleDrawerConfirm(isContinue: boolean) { + form.value.templateId = defaultTemplateId.value; formRef.value?.validate(async (errors: undefined | Record) => { if (!errors) { drawerLoading.value = true; @@ -126,6 +128,7 @@ try { templateOptions.value = await getTemplateOption(appStore.currentProjectId); form.value.templateId = templateOptions.value.find((item) => item.enableDefault)?.id as string; + defaultTemplateId.value = templateOptions.value.find((item) => item.enableDefault)?.id as string; const result = await getTemplateDetailInfo({ id: form.value.templateId, projectId: appStore.currentProjectId }); templateCustomFields.value = result.customFields.map((item: any) => { return {