no message
This commit is contained in:
parent
06c72478d0
commit
0c4882fcaf
@ -94,7 +94,7 @@
|
|||||||
images_upload_handler: function(blobInfo) {
|
images_upload_handler: function(blobInfo) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const data = new FormData();
|
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) => {
|
API.common.upload.post(data).then((res) => {
|
||||||
resolve(res.data.src)
|
resolve(res.data.src)
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
@ -62,6 +62,7 @@
|
|||||||
this.$refs.formref.validate(async (valid) => {
|
this.$refs.formref.validate(async (valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (!this.config.url) {
|
if (!this.config.url) {
|
||||||
|
console.log(this.data)
|
||||||
this.$alert('没有'+ ((this.config.name || this.titleMap[this.mode]) || '编辑') +'数据相关配置', "提示", {type: 'error'});
|
this.$alert('没有'+ ((this.config.name || this.titleMap[this.mode]) || '编辑') +'数据相关配置', "提示", {type: 'error'});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user