提交 1cae3f05 编写于 作者: bo.dang's avatar bo.dang

新增图片修改

上级 1835316a
...@@ -1479,10 +1479,15 @@ ...@@ -1479,10 +1479,15 @@
flag = false; flag = false;
this.$message.error("请填写TAB名称!"); this.$message.error("请填写TAB名称!");
} }
else if(this.formData.tabs[0].contents.length == 0){ if(this.formData.tabs[0].contents.length == 0){
flag = false; flag = false;
this.$message.error("请上传TAB图片!"); this.$message.error("请上传TAB图片!");
} }
else {
this.formData.tabs[0].contents = this.formData.tabs[0].contents.filter(function (item) {
return item != "";
});
}
} }
...@@ -1616,7 +1621,8 @@ ...@@ -1616,7 +1621,8 @@
}); });
if(rtcIntroducesImagesArray != null && rtcIntroducesImagesArray.length != 0){ if(rtcIntroducesImagesArray != null && rtcIntroducesImagesArray.length != 0){
// 直播简介图片版 // 直播简介图片版
this.formData.rtcIntroduces = JSON.parse(JSON.stringify(this.rtcIntroducesImages)); // this.formData.rtcIntroduces = JSON.parse(JSON.stringify(this.rtcIntroducesImages));
this.formData.rtcIntroduces = JSON.parse(JSON.stringify(rtcIntroducesImagesArray));
} }
else { else {
this.formData.rtcIntroduces = []; this.formData.rtcIntroduces = [];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册