changes
This commit is contained in:
@@ -349,14 +349,14 @@ export default {
|
||||
form.append("type", "image");
|
||||
form.append("size", 100);
|
||||
form.append("user", this.$store.login.id);
|
||||
let result = await this.$insertapi("upload", form);
|
||||
let result = await this.$insertapi("upload", { data: form });
|
||||
if (result === "error") return;
|
||||
this.updateImage(result.rows[0]);
|
||||
this.showUrl = false;
|
||||
},
|
||||
async uploadImage(file) {
|
||||
this.loading = true;
|
||||
let result = await this.$insertapi("upload", file.form);
|
||||
let result = await this.$insertapi("upload", { data: file.form });
|
||||
this.data.splice(0, 0, result.rows[0]);
|
||||
this.loading = false;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user