From e7d8ec84709c5d8b58ccca2bffe75b5d47e48270 Mon Sep 17 00:00:00 2001 From: dlaren Date: Sat, 30 Aug 2025 20:32:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=20?= =?UTF-8?q?=E5=8D=95=E8=AF=8D=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/exam/specialty/index.ts | 4 ++-- src/api/system/user/index.ts | 2 +- src/views/exam/teacher/TeacherForm.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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) {