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也赋值于输入框,避免输入框长度超过表格长度