Ver Fonte

试验编辑节点修改

duy há 1 ano atrás
pai
commit
bb0b70f59f
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/views/tentative/detect/components/HcTreeData.vue

+ 2 - 1
src/views/tentative/detect/components/HcTreeData.vue

@@ -160,7 +160,8 @@ const ElTreeLabelContextMenu = (e, data, node) => {
 
 //鼠标右键菜单被点击
 const handleMenuSelect = ({ key }) => {
-    const data = treeRefData.value
+    const data = { ...treeRefData.value }
+    
     if (key === 'add') {
         emit('menuTap', { data })
         nodeFormModel.value = {