Commit 609889a7 authored by xiaoman's avatar xiaoman

bugfix: 钱币编辑校验失败的问题

parent a62735c5
......@@ -206,20 +206,24 @@ export default {
this.$router.push({ path: '/goods/list' })
},
handleEdit: function() {
editGoods(this.goods)
.then(response => {
this.$notify.success({
title: '成功',
message: '创建成功'
})
this.$router.push({ path: '/goods/list' })
})
.catch(response => {
MessageBox.alert('业务错误:' + response.data.errmsg, '警告', {
confirmButtonText: '确定',
type: 'error'
})
})
this.$refs.goods.validate((valid) => {
if (valid) {
editGoods(this.goods)
.then(response => {
this.$notify.success({
title: '成功',
message: '创建成功'
})
this.$router.push({ path: '/goods/list' })
})
.catch(response => {
MessageBox.alert('业务错误:' + response.data.errmsg, '警告', {
confirmButtonText: '确定',
type: 'error'
})
})
}
})
},
uploadOverrun: function() {
this.$message({
......
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