From 513eb46141ba1c04c9619806856603dd8f552b8e Mon Sep 17 00:00:00 2001 From: X men <278735047@qq.com> Date: Sun, 5 Nov 2023 11:17:16 +0000 Subject: [PATCH] fix: upload file endless loop --- XAgentWeb/src/views/playground/components/FileUpload.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/XAgentWeb/src/views/playground/components/FileUpload.vue b/XAgentWeb/src/views/playground/components/FileUpload.vue index 906ff89..3c6be45 100644 --- a/XAgentWeb/src/views/playground/components/FileUpload.vue +++ b/XAgentWeb/src/views/playground/components/FileUpload.vue @@ -83,7 +83,9 @@ watch(() => fileList.value, (newVal) => { message: `The file "${tipFileName}" type is not supported` }); } - fileList.value = allowList + if (allowList.length !== fileList.value.length) { + fileList.value = allowList + } }); const configStore = useConfigStore()