From 1333a0ec6f80951a6710789fe207c384b203b55f Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Wed, 13 Nov 2024 09:33:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=97=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dialog/FaultQueryDialog.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/dialog/FaultQueryDialog.vue b/src/components/dialog/FaultQueryDialog.vue index 97eafb1..9a89d04 100644 --- a/src/components/dialog/FaultQueryDialog.vue +++ b/src/components/dialog/FaultQueryDialog.vue @@ -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',