From 59b767957a5dfc7d18e0241ce36a4787bee91979 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Fri, 7 Feb 2025 18:26:31 +0800 Subject: [PATCH] fix: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand. #396 --- dashboard/src/views/ExtensionPage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/views/ExtensionPage.vue b/dashboard/src/views/ExtensionPage.vue index 8fd06edf8..3dd186a93 100644 --- a/dashboard/src/views/ExtensionPage.vue +++ b/dashboard/src/views/ExtensionPage.vue @@ -381,7 +381,7 @@ export default { if (this.upload_file !== null) { this.toast("正在从文件安装插件", "primary"); const formData = new FormData(); - formData.append('file', this.upload_file[0]); + formData.append('file', this.upload_file); axios.post('/api/plugin/install-upload', formData, { headers: { 'Content-Type': 'multipart/form-data'