From 69753f1f1f664a0e24a02b20adf9e650dad1d38c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E9=B9=B0?= <17kungfuboy@gmail.com> Date: Fri, 17 Jun 2022 18:48:20 +0800 Subject: [PATCH] fixed: issues #73 (#76) --- .../shared/components/params-import/params-import.component.ts | 3 ++- .../browser/src/app/utils/data-transfer/data-transfer.utils.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/workbench/browser/src/app/shared/components/params-import/params-import.component.ts b/src/workbench/browser/src/app/shared/components/params-import/params-import.component.ts index 1c1e3c8a..5cf86472 100644 --- a/src/workbench/browser/src/app/shared/components/params-import/params-import.component.ts +++ b/src/workbench/browser/src/app/shared/components/params-import/params-import.component.ts @@ -83,7 +83,7 @@ export class ParamsImportComponent { return; } paramCode = JSON.parse(JSON.stringify(xml2UiData(this.paramCode))); - console.log('-->', paramCode); + // console.log('-->', paramCode); } if (this.contentType === 'raw') { paramCode = this.paramCode; @@ -115,6 +115,7 @@ export class ParamsImportComponent { break; } case 'overwrite': { + console.log(cacheData); resultData = cacheData; break; } diff --git a/src/workbench/browser/src/app/utils/data-transfer/data-transfer.utils.ts b/src/workbench/browser/src/app/utils/data-transfer/data-transfer.utils.ts index 79ac4129..ffaf2f7b 100644 --- a/src/workbench/browser/src/app/utils/data-transfer/data-transfer.utils.ts +++ b/src/workbench/browser/src/app/utils/data-transfer/data-transfer.utils.ts @@ -38,6 +38,7 @@ export const parseTree = (key, value, level = 0) => { return { name: key, required: true, + value: JSON.stringify(value), example: JSON.stringify(value), type: 'array', description: '',