update 防止异常阻塞流程
This commit is contained in:
@@ -48,7 +48,7 @@ export const getUserSimulationType = () => {
|
|||||||
// const disciplines = await getDisciplineByRole('ROLE_ADMIN, GENERAL_USER');
|
// const disciplines = await getDisciplineByRole('ROLE_ADMIN, GENERAL_USER');
|
||||||
// console.log('disciplines', disciplines);
|
// console.log('disciplines', disciplines);
|
||||||
const roleSimulationInfo: any = getDisciplineByRole(getUserRoleCodes());
|
const roleSimulationInfo: any = getDisciplineByRole(getUserRoleCodes());
|
||||||
return roleSimulationInfo.simulationType[0];
|
return roleSimulationInfo.simulationType ? roleSimulationInfo.simulationType[0] : '';
|
||||||
// return '动画';
|
// return '动画';
|
||||||
// return '工业';
|
// return '工业';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user