update 防止异常阻塞流程

This commit is contained in:
2026-02-04 17:14:11 +08:00
parent 993d8254f4
commit 69c625aeea

View File

@@ -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 '工业';
}; };