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;