update PUT-POST
This commit is contained in:
@@ -158,8 +158,8 @@ export default {
|
||||
this.$refs['dataForm'].validate(valid => {
|
||||
if (valid) {
|
||||
this.$http({
|
||||
url: this.$http.adornUrl(`/monitoring/product/${!this.dataForm.id ? 'save' : 'update'}`),
|
||||
method: 'post',
|
||||
url: this.$http.adornUrl(`/monitoring/product/${!this.dataForm.id ? '' : this.dataForm.id}`),
|
||||
method: this.dataForm.id ? 'put' : 'post',
|
||||
data: this.$http.adornData({
|
||||
id: this.dataForm.id || undefined,
|
||||
code: this.dataForm.code,
|
||||
|
||||
Reference in New Issue
Block a user