|
|
@ -51,7 +51,7 @@ |
|
|
|
if (valid) { |
|
|
|
this.$http({ |
|
|
|
url: this.$http.adornUrl('/api/dict'), |
|
|
|
method: !this.dataForm.dict_id ? 'put' :'post', |
|
|
|
method: this.dataForm.dict_id !== null ? 'put' :'post', |
|
|
|
data: this.$http.adornData(this.dataForm) |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 200) { |
|
|
|