changes
This commit is contained in:
@@ -199,7 +199,7 @@ export default {
|
||||
if (files.length === 0) return;
|
||||
|
||||
const file = files.item(0);
|
||||
let thefile = this.$upload(file, "file", 1);
|
||||
const thefile = this.$upload(file, "file", 1);
|
||||
|
||||
if (thefile.error) {
|
||||
this.$snackbar(thefile.text, "Error");
|
||||
@@ -214,7 +214,7 @@ export default {
|
||||
this.msgInfo.push({ message, type: "error" });
|
||||
return (this.isloading = false);
|
||||
}
|
||||
let result = await this.$insertapi("upload", { data: thefile.form, notify: false });
|
||||
const result = await this.$insertapi("upload", { data: thefile.form, notify: false });
|
||||
if (result === "error") {
|
||||
const message = this.$find(
|
||||
this.$store.syspara,
|
||||
|
||||
Reference in New Issue
Block a user