Skip to content

隶属多个部门,登录页面输入正确,点击登录后,弹出部门选择,不选,直接刷新网页,直接进入dashboard了 #1449

Closed
@Junvary

Description

@Junvary
Contributor
版本号:

2.2.1

问题描述:

隶属多个部门,登录页面输入正确,点击登录后,弹出部门选择,不选,直接刷新网页,直接进入dashboard了,

感觉应该隶属多个部门,需要选择后,才能进去。

截图&代码:

departConfirm(res){
if(res.success){
let multi_depart = res.result.multi_depart
//0:无部门 1:一个部门 2:多个部门
if(multi_depart==0){
this.loginSuccess()
this.$notification.warn({
message: '提示',
description: 您尚未归属部门,请确认账号信息,
duration:3
});
}else if(multi_depart==2){
this.departVisible=true
this.currentUsername=this.form.getFieldValue("username")
this.departList = res.result.departs
}else {
this.loginSuccess()
}
}else{
this.requestFailed(res)
this.Logout();
}
},

友情提示: 未按格式要求发帖,会直接删掉。

Activity

1298191366

1298191366 commented on Jul 30, 2020

@1298191366
Contributor

已修改,待新版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zhangdaiscott@Junvary@1298191366

        Issue actions

          隶属多个部门,登录页面输入正确,点击登录后,弹出部门选择,不选,直接刷新网页,直接进入dashboard了 · Issue #1449 · jeecgboot/JeecgBoot