diff --git a/src/api/exam/specialty/index.ts b/src/api/exam/specialty/index.ts index bb0de7f..1046049 100644 --- a/src/api/exam/specialty/index.ts +++ b/src/api/exam/specialty/index.ts @@ -50,6 +50,6 @@ export const setSpecialtyRole = async (data) => { } // 查询专业列表 -export const getSpeciatListByTenantId = async () => { - return await request.get({ url: '/system/user/getSpeciatListByTenantId' }) +export const getSpecialtListByTenantId = async () => { + return await request.get({ url: '/system/user/getSpecialtListByTenantId' }) } diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index e9e7b3f..a0e89ca 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -65,7 +65,7 @@ export const updateTeacher = (data: UserVO) => { } // 通过账号类型判断专业授权等信息 export const getSpecialtyByUserId = () => { - return request.get({ url: '/system/user/getSpeciatListByUser' }) + return request.get({ url: '/system/user/getSpecialtListByUser' }) } // 删除用户 diff --git a/src/views/exam/teacher/TeacherForm.vue b/src/views/exam/teacher/TeacherForm.vue index d23b4b9..ae14aae 100644 --- a/src/views/exam/teacher/TeacherForm.vue +++ b/src/views/exam/teacher/TeacherForm.vue @@ -184,7 +184,7 @@ const open = async (type: string, id?: number) => { formType.value = type resetForm() // 加载 Menu 列表。注意,必须放在前面,不然下面 setChecked 没数据节点 - menuOptions.value = handleTree(await SpecialtyApi.getSpeciatListByTenantId()) + menuOptions.value = handleTree(await SpecialtyApi.getSpecialtListByTenantId()) // 修改时,设置数据 if (id) {