Commit c8a01090 by 冒粤蓉

fix

1 parent 4f74143c
......@@ -819,10 +819,14 @@ export default{
if(valid){
this.submitting = true;
if(typeof this.fenceId != 'undefined'){
const params = this.getParams();
params.snList.forEach(item => {
if(item.sns) {
delete item.sns;
}
})
if(typeof this.fenceId != 'undefined'){
params.id = this.fenceId;
MONITOR_SERVICE.updateFence(params).then((res)=>{
if(res.code == 200){
......@@ -842,7 +846,7 @@ export default{
this.submitting = false;
});
}else{
MONITOR_SERVICE.saveFence(this.getParams()).then((res)=>{
MONITOR_SERVICE.saveFence(params).then((res)=>{
if(res.code == 200){
//this.closeDialog();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!