fix: 修复上级部门显示异常

This commit is contained in:
皓月归尘 2025-02-19 01:23:08 +08:00
parent f039e020e1
commit dd8351b343
3 changed files with 3 additions and 3 deletions

View File

@ -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 () => {

View File

@ -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") }}
</el-button>

View File

@ -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 ?? "",