Skip to content

Commit e107eeb

Browse files
committed
fix:remove arguments #124
1 parent ee0fce5 commit e107eeb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/views/list/TableList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
},
3232
methods: {
3333
handleEdit (record) {
34-
this.record = record
34+
this.record = record || ''
3535
this.currentComponet = 'Edit'
3636
console.log(record)
3737
},

src/views/list/table/List.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</div>
6363

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

0 commit comments

Comments
 (0)