From 8588a27008bb772ed19746c3645c2bdfb356d042 Mon Sep 17 00:00:00 2001 From: sige Date: Sat, 27 Jul 2024 09:03:51 +0800 Subject: [PATCH] 0 --- package.json | 3 +- src/components/ServiceConfiguration.vue | 78 +++++++++++++--------- src/components/ServiceConfigurationActionLog.vue | 20 ++++-- .../ServiceConfigurationActionParamFile.vue | 45 +++++++++++++ .../ServiceConfigurationParamValueObjectEdit.vue | 4 +- src/utils/ApiClient.js | 4 +- 6 files changed, 112 insertions(+), 42 deletions(-) create mode 100644 src/components/ServiceConfigurationActionParamFile.vue diff --git a/package.json b/package.json index 6bbaa2e..8b214b4 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,8 @@ }, "rules": { "no-debugger": "off", - "no-undef": "off" + "no-undef": "off", + "no-unused-vars" : "off" } }, "browserslist": [ diff --git a/src/components/ServiceConfiguration.vue b/src/components/ServiceConfiguration.vue index 6bf7869..ecabf6d 100644 --- a/src/components/ServiceConfiguration.vue +++ b/src/components/ServiceConfiguration.vue @@ -1,10 +1,5 @@ \ No newline at end of file diff --git a/src/components/ServiceConfigurationParamValueObjectEdit.vue b/src/components/ServiceConfigurationParamValueObjectEdit.vue index d8339af..78e9d30 100644 --- a/src/components/ServiceConfigurationParamValueObjectEdit.vue +++ b/src/components/ServiceConfigurationParamValueObjectEdit.vue @@ -47,7 +47,6 @@ onMounted(mounted); // on mounted async function mounted() { tableData.value = await setupTableData(props.structClassName); - console.log(tableData.value); } // setup tree data @@ -111,11 +110,10 @@ function actionEditEable() { // ok async function actionOk() { let newValue = generateJsonData(tableData.value); - console.log(newValue); emits('update:value', newValue); emits('change'); await nextTick(); emits('save-request'); - isModalOpen.value = true; + isModalOpen.value = false; } \ No newline at end of file diff --git a/src/utils/ApiClient.js b/src/utils/ApiClient.js index d16c9cb..2ded40c 100644 --- a/src/utils/ApiClient.js +++ b/src/utils/ApiClient.js @@ -29,7 +29,9 @@ export default class ApiClient { Modal.error({title: '请求错误',content:content,width:800}); throw new Error(`API【${name}】调用失败 : ${response.data}`); } - response.data.data.$dataType = response.data.dataType; + if ( 'object' === typeof(response.data.data) ) { + response.data.data.$dataType = response.data.dataType; + } return response.data.data; } } \ No newline at end of file