Commit 11e4a6bd authored by lixy's avatar lixy

分公司管理-直接上架图片

parent b4c69a52
...@@ -418,10 +418,12 @@ ...@@ -418,10 +418,12 @@
let arr = info.images.split(",");//图片 let arr = info.images.split(",");//图片
let temp = []; let temp = [];
for(let i = 0; i < arr.length; i++){ for(let i = 0; i < arr.length; i++){
let p = { if(arr[i]){
url: arr[i] let p = {
url: arr[i]
}
temp.push(p);
} }
temp.push(p);
} }
t.fileList2 = temp; t.fileList2 = temp;
this.activeName2 = "first"; this.activeName2 = "first";
...@@ -466,7 +468,7 @@ ...@@ -466,7 +468,7 @@
}); });
return; return;
} }
if(!this.form.images){ if(this.fileList2.length<=0){
this.tabName = "second"; this.tabName = "second";
this.$notify({ this.$notify({
title: '警告', title: '警告',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment