Explorar el Código

试验编辑节点修改

duy hace 1 año
padre
commit
bb0b70f59f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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 = {