From c6effd2e75dc4a38c0a1eff84732e5aa0f8c8501 Mon Sep 17 00:00:00 2001
From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com>
Date: Tue, 1 Nov 2022 14:28:53 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20sql=20=E6=95=B0=E6=8D=AE=E9=9B=86?=
=?UTF-8?q?=E7=BC=96=E8=BE=91bug=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/components/canvas/utils/utils.js | 2 +-
frontend/src/components/gridTable/index.vue | 13 +-
.../component-style/dialog/RemarkEditor.vue | 1 -
frontend/src/views/dataset/add/AddSQL.vue | 354 ++++++++----------
4 files changed, 174 insertions(+), 196 deletions(-)
diff --git a/frontend/src/components/canvas/utils/utils.js b/frontend/src/components/canvas/utils/utils.js
index d3ab9c2e14..09cb8cd0b2 100644
--- a/frontend/src/components/canvas/utils/utils.js
+++ b/frontend/src/components/canvas/utils/utils.js
@@ -12,7 +12,7 @@ import { AIDED_DESIGN, PANEL_CHART_INFO, TAB_COMMON_STYLE } from '@/views/panel/
import html2canvas from 'html2canvasde'
export function deepCopy(target) {
- if (typeof target === 'object') {
+ if (typeof target === 'object' && target !== null) {
const result = Array.isArray(target) ? [] : {}
for (const key in target) {
if (typeof target[key] === 'object') {
diff --git a/frontend/src/components/gridTable/index.vue b/frontend/src/components/gridTable/index.vue
index abd098799c..84f780b4d8 100644
--- a/frontend/src/components/gridTable/index.vue
+++ b/frontend/src/components/gridTable/index.vue
@@ -13,7 +13,10 @@