fix(测试用例): 导出抽屉提交后清空选项

This commit is contained in:
teukkk 2024-08-09 10:57:02 +08:00 committed by Craftsman
parent cf3ca1e567
commit 8444bb920a
2 changed files with 3 additions and 2 deletions

View File

@ -332,6 +332,7 @@
const handleDrawerConfirm = () => { const handleDrawerConfirm = () => {
emit('confirm', selectedList.value); emit('confirm', selectedList.value);
handleReset();
}; };
const handleDrawerCancel = () => { const handleDrawerCancel = () => {

View File

@ -1223,7 +1223,7 @@
} else { } else {
res = await exportXMindCase(params); res = await exportXMindCase(params);
} }
taskId.value = res.taskId; taskId.value = res;
startWebsocketGetExportResult(); startWebsocketGetExportResult();
showExportingMessage(); showExportingMessage();
exportLoading.value = false; exportLoading.value = false;
@ -1240,7 +1240,7 @@
async function batchExport() { async function batchExport() {
try { try {
const res = await checkCaseExportTask(); const res = await checkCaseExportTask();
if (!res.fileId.length) { if (!res.fileId || !res.fileId.length) {
showExportVisible.value = true; showExportVisible.value = true;
} else { } else {
reportId.value = res.fileId; reportId.value = res.fileId;