Skip to content

Commit

Permalink
fix: Table page checkedRowKeys undefined when build:mock mode
Browse files Browse the repository at this point in the history
  • Loading branch information
flingyp committed Jun 26, 2023
1 parent ee2e0f1 commit b500550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/features/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const searchData = () => info('搜索数据')
const addTableData = () => info('点击新增')
// checked row keys
const checkedRowKeys = (id: string) => console.log('选中行所绑定的ID值->>>', id)
const checkedRowKeys = (id: string) => (success(`选中行所绑定的ID值:${id}`))
onMounted(async () => {
const { total } = await getData()
Expand All @@ -147,7 +147,7 @@ onMounted(async () => {
size="small"
:loading="isLoading"
:headers="baseTableColumns"
:data="tableData"
:data="tableData || []"
:pagination="pagination"
@search="searchData"
@checked-row-keys="checkedRowKeys"
Expand Down

0 comments on commit b500550

Please sign in to comment.