fix(功能用例): 修改详情打开后循环调用接口bug
This commit is contained in:
parent
36c5f06f54
commit
323fa6b5c0
|
@ -537,7 +537,6 @@
|
||||||
(val) => {
|
(val) => {
|
||||||
if (val) {
|
if (val) {
|
||||||
showDrawerVisible.value = val;
|
showDrawerVisible.value = val;
|
||||||
activeTab.value = 'detail';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -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');
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue