diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 765486a..5100bda 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -83,7 +83,7 @@ const onLogin = async (formEl: FormInstance | undefined) => { code: ruleForm.verifyCode }) .then(async res => { - if (res.code === 200) { + if (res.success) { useUserStoreHook().SET_ACCESSTOKEN(res.data.accessToken); // 获取后端路由 return initRouter().then(async () => { diff --git a/src/views/system/department/index.vue b/src/views/system/department/index.vue index f0ad7ca..d629278 100644 --- a/src/views/system/department/index.vue +++ b/src/views/system/department/index.vue @@ -128,7 +128,7 @@ onBeforeRouteUpdate((to, from, next) => { type="primary" :size="size" :icon="useRenderIcon(AddFill)" - @click="openDialog('新增', { parentId: row.id } as any)" + @click="openDialog('新增', { parent_id: row.id } as any)" > {{ t("buttons:Add") }} diff --git a/src/views/system/department/utils/hook.tsx b/src/views/system/department/utils/hook.tsx index 0ea5c0e..54f18f0 100644 --- a/src/views/system/department/utils/hook.tsx +++ b/src/views/system/department/utils/hook.tsx @@ -141,7 +141,7 @@ export const useDepartment = () => { title: `${title}部门`, props: { formInline: { - higherDeptOptions: formatHigherOptions(cloneDeep(dataList.value)), + higherOptions: formatHigherOptions(cloneDeep(dataList.value)), id: row?.id ?? "", parent_id: row?.parent_id ?? "", name: row?.name ?? "",