fix: API字段校验 导航栏展开bug修复

This commit is contained in:
dataeaseShu 2022-07-29 15:22:50 +08:00
parent b64ac729a9
commit 3ae8198a66
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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;