Commit 9f25c5e9 authored by yaya's avatar yaya

feat:优化发布功能

parent 77ea2792
......@@ -282,13 +282,13 @@ export default {
})
return
}
const imageList = [...this.goods.images]
if (this.itemImages) {
this.goods.images = this.itemImages.join(';')
this.goods.images = this.goods.images.join(';')
} else {
this.goods.images = ''
}
this.$refs.goods.validate((valid) => {
debugger
if (valid) {
if (this.numType === -1) {
this.goods.buyLimitNum = -1
......@@ -303,6 +303,7 @@ export default {
this.$router.push({ path: '/sale/saleList' })
})
.catch(response => {
this.goods.images = imageList
MessageBox.alert('业务错误:' + response.data.errmsg, '警告', {
confirmButtonText: '确定',
type: 'error'
......@@ -318,6 +319,7 @@ export default {
this.$router.push({ path: '/sale/saleList' })
})
.catch(response => {
this.goods.images = imageList
MessageBox.alert('业务错误:' + response.data.errmsg, '警告', {
confirmButtonText: '确定',
type: 'error'
......
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