Commit 609889a7 authored by xiaoman's avatar xiaoman

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

parent a62735c5
...@@ -206,6 +206,8 @@ export default { ...@@ -206,6 +206,8 @@ export default {
this.$router.push({ path: '/goods/list' }) this.$router.push({ path: '/goods/list' })
}, },
handleEdit: function() { handleEdit: function() {
this.$refs.goods.validate((valid) => {
if (valid) {
editGoods(this.goods) editGoods(this.goods)
.then(response => { .then(response => {
this.$notify.success({ this.$notify.success({
...@@ -220,6 +222,8 @@ export default { ...@@ -220,6 +222,8 @@ export default {
type: 'error' type: 'error'
}) })
}) })
}
})
}, },
uploadOverrun: function() { uploadOverrun: function() {
this.$message({ 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