diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 261ce375..ac917cb2 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -385,6 +385,7 @@ function fnModalVisibleByEdit(userId?: string | number) { modalState.from = Object.assign(modalState.from, user); modalState.from.roleIds = roleIds; modalState.from.postIds = postIds; + modalState.from.deptId = deptTreeData.value[0].id; modalState.title = t('common.addText') + t('views.system.user.userInfo'); modalState.visibleByEdit = true; @@ -1218,7 +1219,12 @@ onMounted(() => { - +