We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63ff44f commit 98a8277Copy full SHA for 98a8277
src/views/table/complexTable.vue
@@ -111,8 +111,7 @@
111
</el-form>
112
<div slot="footer" class="dialog-footer">
113
<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>
+ <el-button type="primary" @click="dialogStatus==='create'?createData():updateData()">{{ $t('table.confirm') }}</el-button>
116
</div>
117
</el-dialog>
118
0 commit comments