Selaa lähdekoodia

fix:remove arguments #124

kokoroli 6 vuotta sitten
vanhempi
commit
e107eeb203
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      src/views/list/TableList.vue
  2. 1 1
      src/views/list/table/List.vue

+ 1 - 1
src/views/list/TableList.vue

@@ -31,7 +31,7 @@ export default {
   },
   methods: {
     handleEdit (record) {
-      this.record = record
+      this.record = record || ''
       this.currentComponet = 'Edit'
       console.log(record)
     },

+ 1 - 1
src/views/list/table/List.vue

@@ -62,7 +62,7 @@
     </div>
 
     <div class="table-operator">
-      <a-button type="primary" icon="plus" @click="handleEdit(record)">新建</a-button>
+      <a-button type="primary" icon="plus" @click="handleEdit()">新建</a-button>
       <a-button type="dashed" @click="tableOption">{{ optionAlertShow && '关闭' || '开启' }} alert</a-button>
       <a-dropdown v-action:edit v-if="selectedRowKeys.length > 0">
         <a-menu slot="overlay">