Commit de4c9af0 by 前端

Merge branch 'v3.3.1' into 'master'

修复营销素材提交bug

See merge request !11
2 parents 249483d6 43bb0930
......@@ -339,7 +339,7 @@ export default {
// 获取全部素材组
getMaterialList(params) {
this.$apis.material.getMaterialList(params).then(res => {
this.groupCounter = res
this.groupCounter = res || []
})
},
selectChange(val) {
......@@ -470,7 +470,7 @@ export default {
if (!imgHtml && !videoHtml) params.materialType = 5
if (imgHtml && imgHtml.length && !videoHtml && !html.length) params.materialType = 6
if (this.materialAddForm.vedioUrl && !this.materialAddForm.imageUrlList.length) params.materialType = 4
if (this.materialAddForm.imageUrlList.length) params.materialType = 3
if (this.materialAddForm.imageUrlList && this.materialAddForm.imageUrlList.length ) params.materialType = 3
this.textBoxContent = encodeURIComponent(this.textBoxContent)
params.materialUrl = this.textBoxContent
}
......@@ -533,7 +533,7 @@ export default {
params.isDefault = 0
this.$apis.material.addMaterialGroup(params).then(res => {
if (res) {
this.getMaterialList()
this.getMaterialList({})
}
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!