fix: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand. #396

This commit is contained in:
Soulter
2025-02-07 18:26:31 +08:00
parent 17d4bf8f22
commit 59b767957a
+1 -1
View File
@@ -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'