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