|
@@ -152,8 +152,8 @@ const getDepartmentList = async (id, key, type, isRefreshValue = false) => {
|
|
|
|
|
|
// 获取学生基本信息
|
|
|
const studentInfoFun = async () => {
|
|
|
- // await userStore.getStudentInformation()
|
|
|
const data = JSON.parse(localStorage.getItem('studentInfo') || '{}')
|
|
|
+ if (!data || !Object.keys(data).length) await userStore.getStudentInformation()
|
|
|
if (data.schoolId) getDepartmentList(data.schoolId, 'schoolDeptId', 0)
|
|
|
if (data?.schoolClassId) getDepartmentList(data.schoolDeptId, 'schoolClassId', 2)
|
|
|
if (data?.majorId) {
|