This commit is contained in:
pushuo 2022-07-25 17:47:46 +08:00
parent b2a8699edf
commit 5ffcfaeb00
1 changed files with 4 additions and 1 deletions

View File

@ -84,7 +84,10 @@
},
uploadFile(file) {
$http.post('plugins/import', file).then((res) => {
let formData = new FormData();
formData.append("file", file.file, file.file.name);
$http.post('plugins/import', formData).then((res) => {
layer.msg(res.message)
location.reload();
})