summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenjinsong <[email protected]>2019-11-08 10:45:38 +0800
committerchenjinsong <[email protected]>2019-11-08 10:45:38 +0800
commitdcb1b1f0acebe8dbeacbb0104023bdc9875b2079 (patch)
tree5a3cf994b88c70f070ded29300bd5e09a063fb2e
parent920e6f44d0840ea0a220ab4df7c386933c72c49d (diff)
重置bug修复
-rw-r--r--nezha-admin/src/main/resources/templates/js/modules/common/nodeRel.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/nezha-admin/src/main/resources/templates/js/modules/common/nodeRel.js b/nezha-admin/src/main/resources/templates/js/modules/common/nodeRel.js
index 6e781190..8ae18c4f 100644
--- a/nezha-admin/src/main/resources/templates/js/modules/common/nodeRel.js
+++ b/nezha-admin/src/main/resources/templates/js/modules/common/nodeRel.js
@@ -260,8 +260,8 @@ var nodeRelComponent = Vue.extend({
}
},
nodeReset: function() { //重置此次操作
- this.tempSelectedNodes = this.selectedNodes = this.initSelectedNodes;
- this.tempSelectableNodes = this.selectableNodes = this.initSelectableNodes;
+ this.tempSelectedNodes = this.selectedNodes = JSON.parse(JSON.stringify(this.initSelectedNodes));
+ this.tempSelectableNodes = this.selectableNodes = JSON.parse(JSON.stringify(this.initSelectableNodes));
this.countControll();
},
sortRow: function(flag, nodes) { //列表重新排序,将新增的项置顶