forked from github/dataease
fix: API字段校验 导航栏展开bug修复
This commit is contained in:
parent
b64ac729a9
commit
3ae8198a66
@ -49,7 +49,7 @@ export default {
|
|||||||
// return this.$router.options.routes
|
// return this.$router.options.routes
|
||||||
if (this.isCollapse) {
|
if (this.isCollapse) {
|
||||||
return this.flatterRouter(
|
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;
|
return this.$store.state.permission.currentRoutes.children;
|
||||||
|
@ -1039,7 +1039,9 @@ export default {
|
|||||||
|
|
||||||
for (var j = 0; j < this.apiItem.fields.length; j++) {
|
for (var j = 0; j < this.apiItem.fields.length; j++) {
|
||||||
if(this.apiItem.fields[j].name === jsonFields[i].name){
|
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'))
|
this.$message.error(jsonFields[i].name + ', ' + i18n.t('datasource.has_repeat_field_name'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -1200,7 +1202,7 @@ export default {
|
|||||||
background-color: rgba(187, 191, 196, 0.5);
|
background-color: rgba(187, 191, 196, 0.5);
|
||||||
height: 1px;
|
height: 1px;
|
||||||
top: 13px;
|
top: 13px;
|
||||||
left: calc(50% + 22px);
|
left: calc(50% + 22px) !important;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user