whj hai 1 ano
pai
achega
e0833a4ace
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/views/test/Test1.vue

+ 3 - 1
src/views/test/Test1.vue

@@ -113,10 +113,12 @@ export default {
   methods: {
     onClone (element) {
       // 生成随机id
-      return {
+      const val = {
         ...element,
         id: Math.floor(Math.random() * 10000000000000)
       }
+      this.handleSelect(val)
+      return val
     },
     update (val) {
       console.log(val)