Skip to content

Commit 98a8277

Browse files
committed
tweak code
1 parent 63ff44f commit 98a8277

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/views/table/complexTable.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@
111111
</el-form>
112112
<div slot="footer" class="dialog-footer">
113113
<el-button @click="dialogFormVisible = false">{{ $t('table.cancel') }}</el-button>
114-
<el-button v-if="dialogStatus=='create'" type="primary" @click="createData">{{ $t('table.confirm') }}</el-button>
115-
<el-button v-else type="primary" @click="updateData">{{ $t('table.confirm') }}</el-button>
114+
<el-button type="primary" @click="dialogStatus==='create'?createData():updateData()">{{ $t('table.confirm') }}</el-button>
116115
</div>
117116
</el-dialog>
118117

0 commit comments

Comments
 (0)