no message

This commit is contained in:
小陌 2023-07-20 22:44:17 +08:00
parent 06c72478d0
commit 0c4882fcaf
2 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,7 @@
images_upload_handler: function(blobInfo) {
return new Promise((resolve, reject) => {
const data = new FormData();
data.append("file", blobInfo.blob() ,blobInfo.filename());
data.append("files", blobInfo.blob() ,blobInfo.filename());
API.common.upload.post(data).then((res) => {
resolve(res.data.src)
}).catch(() => {

View File

@ -62,6 +62,7 @@
this.$refs.formref.validate(async (valid) => {
if (valid) {
if (!this.config.url) {
console.log(this.data)
this.$alert('没有'+ ((this.config.name || this.titleMap[this.mode]) || '编辑') +'数据相关配置', "提示", {type: 'error'});
return;
}