fix(系统设置): 修复个人权限默认路径问题

--bug=1010396--user=郭雨琦 修复个人权限默认路径问题
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001010396
This commit is contained in:
guoyuqi 2022-02-21 10:43:08 +08:00 committed by fit2-zhao
parent 5a9248f782
commit d759253d3e
1 changed files with 17 additions and 1 deletions

View File

@ -63,7 +63,7 @@
};
return{
//persons: getMenus('person'),
activeIndex: 'commons.personal_setting',
activeIndex: '',
ruleForm:{},
hasJira: false,
hasTapd: false,
@ -187,8 +187,24 @@
this.projectList = data.project
});
},
getActiveIndex(){
if(hasPermission('PERSONAL_INFORMATION:READ+EDIT')){
this.activeIndex = 'commons.personal_setting';
return;
}else if(hasPermission('PERSONAL_INFORMATION:READ+API_KEYS')){
this.activeIndex = 'commons.api_keys';
return;
}else if(hasPermission('PERSONAL_INFORMATION:READ+EDIT_PASSWORD')){
this.activeIndex = 'change_password';
return;
}else if(hasPermission('PERSONAL_INFORMATION:READ+THIRD_ACCOUNT')){
this.activeIndex = 'third_account';
return;
}
}
},
created() {
this.getActiveIndex();
this.initTableData();
}