diff --git a/src/views/examples/table/post/index.vue b/src/views/examples/table/post/index.vue index 5ca73a3..c1476fa 100644 --- a/src/views/examples/table/post/index.vue +++ b/src/views/examples/table/post/index.vue @@ -31,13 +31,12 @@ onBeforeMount(() => { initTableData() }) -// fns function handleCreate() { router.push('/example/table/post-create') } function handleCheck(rowKeys) { - $message.info(`选中${rowKeys.join(' ')}`) + if (rowKeys.length) $message.info(`选中${rowKeys.join(' ')}`) }