图片上传返回路径修改

master
wanglei 2 years ago
parent ec8505e42b
commit c90fe03614

@ -155,7 +155,7 @@ export default {
//
handleUploadSuccess(res, file) {
if (res.code === 200) {
this.uploadList.push({ name: res.fileName, url: res.fileName });
this.uploadList.push({ name: res.fileName, url: res.url });
this.uploadedSuccessfully();
} else {
this.number--;

@ -380,7 +380,7 @@ export default {
});
},
/** 提交按钮 */
submitForm: function() {
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != undefined) {

Loading…
Cancel
Save