From c5835d6d8c28e799391ad9559682cc43ab74e2fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=AE=97=E6=B4=8B?= Date: Wed, 28 Dec 2022 10:15:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=A7=E8=A1=8Csql=EF=BC=8C=E6=97=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=97=B6=E4=B9=9F=E6=8F=90=E7=A4=BA=E4=B8=80?= =?UTF-8?q?=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mayfly_go_web/src/views/ops/db/SqlExec.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mayfly_go_web/src/views/ops/db/SqlExec.vue b/mayfly_go_web/src/views/ops/db/SqlExec.vue index 5132154c..6fcffc83 100644 --- a/mayfly_go_web/src/views/ops/db/SqlExec.vue +++ b/mayfly_go_web/src/views/ops/db/SqlExec.vue @@ -859,6 +859,9 @@ const doRunSql = async (sql: string, execRemark?: string) => { state.queryTab.sql = sql; state.queryTab.loading = true; const colAndData: any = await runSql(sql, execRemark); + if(!colAndData.res || colAndData.res.length===0){ + ElMessage.warning('暂无数据') + } state.queryTab.execRes.data = colAndData.res; state.queryTab.execRes.tableColumn = colAndData.colNames; state.queryTab.loading = false;