fix:project 左侧菜单bug修复

This commit is contained in:
wangwenrui
2020-04-20 15:50:19 +08:00
parent 575af9543d
commit 1c69f9ef01

View File

@@ -438,7 +438,7 @@
},
projectChange:function(){
//展开后为避免左侧无数据显示对应project的第一个module下的endpoint
let currentProjectId=this.currentProjectTitle&&this.cuurentProjectTitle != ""?this.currentProjectTitle.split('-')[1]:"";
let currentProjectId=this.currentProjectTitle&&this.cuurentProjectTitle != ""?this.currentProjectTitle.split('-')[this.currentProjectTitle.split('-').length -1]:"";
if(currentProjectId != ''){
currentProjectId=Number.parseInt(currentProjectId);
let moduleList=this.getProjectModule(currentProjectId);