Commit 5fbec03d by liwk

commit

1 parent 2ab95b0d
...@@ -519,7 +519,7 @@ export default { ...@@ -519,7 +519,7 @@ export default {
}, },
handleSubmit () { handleSubmit () {
this.$refs.storeRuleForm.validate(valid => { this.$refs.storeRuleForm.validate(valid => {
this.storeForm.merId = Number(this.storeForm.merId) this.storeForm.merId = this.storeForm.merId ? Number(this.storeForm.merId) : ''
if (valid) { if (valid) {
axios.post(`${process.env.VUE_APP_API}shop/edit`, this.storeForm).then(res => { axios.post(`${process.env.VUE_APP_API}shop/edit`, this.storeForm).then(res => {
this.$refs.storeTable.refreshTable() this.$refs.storeTable.refreshTable()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!