Commit 08f0075d authored by yaya's avatar yaya

feat:必须添加主图才可发布

parent b6e42ab9
...@@ -425,6 +425,10 @@ export default { ...@@ -425,6 +425,10 @@ export default {
}, },
// 发布 // 发布
handlePublish() { handlePublish() {
if (!this.goodsParams.topImage && !this.goodsParams.imgBaseStr) {
this.$message.warning('请设置主图')
return
}
editGoods(this.goodsParams).then(response => { editGoods(this.goodsParams).then(response => {
this.$message.success('发布成功') this.$message.success('发布成功')
this.handleNext() this.handleNext()
......
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