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) => { (val) => {
if (val) { if (val) {
showDrawerVisible.value = val; showDrawerVisible.value = val;
activeTab.value = 'detail';
} }
} }
); );

View File

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

View File

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