官网上传图片大小限制取消

This commit is contained in:
home孙 2025-07-31 10:13:30 +08:00
parent ba5847d086
commit b1f065de8f
5 changed files with 10 additions and 0 deletions

View File

@ -275,9 +275,11 @@ export default {
this.$refs.fileInput.value = "";
} else {
this.$message.error(res.data.msg);
this.$refs.fileInput.value = "";
}
}).catch((err) => {
this.loading = false;
this.$refs.fileInput.value = "";
this.$message.error("插入图片失败");
});
};

View File

@ -287,9 +287,11 @@ detailedIntroductionTextEnTitle:'',
this.$refs.fileInput.value = "";
} else {
this.$message.error(res.data.msg);
this.$refs.fileInput.value = "";
}
}).catch((err) => {
this.loading = false;
this.$refs.fileInput.value = "";
this.$message.error("插入图片失败");
});
};

View File

@ -265,9 +265,11 @@ detailedIntroductionTextEnTitle:'',
this.$refs.fileInput.value = "";
} else {
this.$message.error(res.data.msg);
this.$refs.fileInput.value = "";
}
}).catch((err) => {
this.loading = false;
this.$refs.fileInput.value = "";
this.$message.error("插入图片失败");
});
};

View File

@ -453,9 +453,11 @@ export default {
this.$refs.fileInput.value = "";
} else {
this.$message.error(res.data.msg);
this.$refs.fileInput.value = "";
}
}).catch((err) => {
this.loading = false;
this.$refs.fileInput.value = "";
this.$message.error("插入图片失败");
});
};

View File

@ -590,8 +590,10 @@ productId: "",
this.$refs.fileInput1.value = "";
} else {
this.$message.error(res.data.msg);
this.$refs.fileInput.value = "";
}
}).catch((err) => {
this.$refs.fileInput.value = "";
this.loading = false;
this.$message.error("插入图片失败");
});