fix(功能用例): 修改详情打开后循环调用接口bug

This commit is contained in:
xinxin.wu 2024-02-21 15:19:00 +08:00 committed by Craftsman
parent 36c5f06f54
commit 323fa6b5c0
3 changed files with 3 additions and 3 deletions

View File

@ -537,7 +537,6 @@
(val) => {
if (val) {
showDrawerVisible.value = val;
activeTab.value = 'detail';
}
}
);

View File

@ -46,6 +46,7 @@
const props = defineProps<{
visible: boolean;
caseId: string;
}>();
const emit = defineEmits<{
@ -93,7 +94,7 @@
drawerLoading.value = true;
try {
await createOrUpdateBug({
request: { ...form.value, customFields: templateCustomFields.value },
request: { ...form.value, customFields: templateCustomFields.value, caseId: props.caseId },
fileList: [],
});
emit('success');

View File

@ -85,7 +85,7 @@
</div>
</template>
</ms-base-table>
<AddDefectDrawer v-model:visible="showDrawer" @success="getFetch()" />
<AddDefectDrawer v-model:visible="showDrawer" :case-id="props.caseId" @success="getFetch()" />
<LinkDefectDrawer
v-model:visible="showLinkDrawer"
:case-id="props.caseId"