查询无数据调整
This commit is contained in:
parent
52fbdba1af
commit
1333a0ec6f
@ -198,7 +198,9 @@ const onRequest: QTable['onRequest'] = async (props) => {
|
||||
pagination.value.rowsNumber = resp.total;
|
||||
pagination.value.rowsPerPage = resp.size;
|
||||
rows.splice(0, rows.length, ...(resp.records as []));
|
||||
handleRowClick(rows[0]);
|
||||
if (rows.length) {
|
||||
handleRowClick(rows[0]);
|
||||
}
|
||||
} catch (err) {
|
||||
$q.notify({
|
||||
type: 'negative',
|
||||
|
Loading…
Reference in New Issue
Block a user