From dda600709bff7d3adf24b9598dfe1982bd998e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=AE=97=E6=B4=8B?= Date: Tue, 13 Dec 2022 11:03:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=8C=E5=87=BB?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E4=BA=8B=E4=BB=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mayfly_go_web/src/router/route.ts | 2 +- mayfly_go_web/src/views/ops/db/SqlExec.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mayfly_go_web/src/router/route.ts b/mayfly_go_web/src/router/route.ts index a2bc24cf..38d9928e 100644 --- a/mayfly_go_web/src/router/route.ts +++ b/mayfly_go_web/src/router/route.ts @@ -124,7 +124,7 @@ export const staticRoutes: Array = [ name: 'login', component: () => import('@/views/login/index.vue'), meta: { - title: '登陆', + title: '登录', }, }, { diff --git a/mayfly_go_web/src/views/ops/db/SqlExec.vue b/mayfly_go_web/src/views/ops/db/SqlExec.vue index 0422c84e..5132154c 100644 --- a/mayfly_go_web/src/views/ops/db/SqlExec.vue +++ b/mayfly_go_web/src/views/ops/db/SqlExec.vue @@ -1475,10 +1475,10 @@ const cellClick = (row: any, column: any, cell: any) => { if (!state.nowTableName || !property) { return; } - // 转为字符串比较,可能存在数字等 - let text = (row[property] || row[property] == 0 ? row[property] : '') + ''; let div: HTMLElement = cell.children[0]; - if (div) { + if (div && div.tagName === 'DIV') { + // 转为字符串比较,可能存在数字等 + let text = (row[property] || row[property] == 0 ? row[property] : '') + ''; let input = document.createElement('input'); input.setAttribute('value', text); // 将表格width也赋值于输入框,避免输入框长度超过表格长度