From 3ae8198a6653598b0cf9e3874201345d99f059e0 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Fri, 29 Jul 2022 15:22:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20API=E5=AD=97=E6=AE=B5=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=20=E5=AF=BC=E8=88=AA=E6=A0=8F=E5=B1=95=E5=BC=80bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/layout/components/Sidebar/index.vue | 2 +- frontend/src/views/system/datasource/DsConfiguration.vue | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/layout/components/Sidebar/index.vue b/frontend/src/layout/components/Sidebar/index.vue index 1fd71d9501..6ae6d1942f 100644 --- a/frontend/src/layout/components/Sidebar/index.vue +++ b/frontend/src/layout/components/Sidebar/index.vue @@ -49,7 +49,7 @@ export default { // return this.$router.options.routes if (this.isCollapse) { return this.flatterRouter( - this.$store.state.permission.currentRoutes.children + JSON.parse(JSON.stringify(this.$store.state.permission.currentRoutes.children)) ); } return this.$store.state.permission.currentRoutes.children; diff --git a/frontend/src/views/system/datasource/DsConfiguration.vue b/frontend/src/views/system/datasource/DsConfiguration.vue index acb4bc7d4e..3c2a79f108 100644 --- a/frontend/src/views/system/datasource/DsConfiguration.vue +++ b/frontend/src/views/system/datasource/DsConfiguration.vue @@ -1039,7 +1039,9 @@ export default { for (var j = 0; j < this.apiItem.fields.length; j++) { if(this.apiItem.fields[j].name === jsonFields[i].name){ - jsonFields[i].checked = false; + this.$nextTick(() => { + jsonFields[i].checked = false; + }) this.$message.error(jsonFields[i].name + ', ' + i18n.t('datasource.has_repeat_field_name')) return } @@ -1200,7 +1202,7 @@ export default { background-color: rgba(187, 191, 196, 0.5); height: 1px; top: 13px; - left: calc(50% + 22px); + left: calc(50% + 22px) !important; width: 100px; margin-right: 0px;