This commit is contained in:
Viet An
2026-06-04 13:57:27 +07:00
parent 2981d9790a
commit 2a1f85c2af
44 changed files with 99 additions and 102 deletions

View File

@@ -129,7 +129,7 @@ export default {
form.append("type", "file");
form.append("size", this.selected.size);
form.append("user", this.$store.state.login.id);
let result = await this.$insertapi("upload", form);
let result = await this.$insertapi("upload", { data: form });
this.loading = false;
if (result === "error") return;
this.$emit("modalevent", { name: "image", data: result.rows[0] });