From 4d65590ad1273004b3a61dd6f1a9666d065808a0 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Wed, 13 Nov 2024 09:34:33 +0800 Subject: [PATCH] Squashed commit of the following: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 1333a0ec6f80951a6710789fe207c384b203b55f Author: joylink_zhaoerwei Date: Wed Nov 13 09:33:09 2024 +0800 查询无数据调整 --- 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',