From 976a8d51504a391cf93dd81a4ce8169fe49eddbc Mon Sep 17 00:00:00 2001 From: martsi Date: Sat, 6 Jul 2024 01:08:03 +0800 Subject: [PATCH] bug: Response type correction --- src/components/taskConfig/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/taskConfig/index.vue b/src/components/taskConfig/index.vue index f7d6219..28306df 100644 --- a/src/components/taskConfig/index.vue +++ b/src/components/taskConfig/index.vue @@ -22,9 +22,9 @@ const processConfig = reactive<{ }>({}); interface Response { + code: string; message: string; - output: string; - error: string; + data: { OUTPUT: string }; } let res = ref(); @@ -48,7 +48,7 @@ function onCancel() { async function download() { console.log(res.value); - const response = await downloadFile(res.value.data.OUTPUT); + const response = await downloadFile(res.value!.data.OUTPUT); const url = window.URL.createObjectURL(new Blob([response.data])); const link = document.createElement("a"); link.href = url;