Skip to content

role.js文件中的代码 #1

@hongtongtong

Description

@hongtongtong
                if (!(authRules instanceof Array) || authRules.length === 0) {
                    Message.error('权限验证失败,请联系管理员~')
                    store.dispatch('loginOut').then(() => {
                        var redirect = to.fullPath
                        store.dispatch('loginOut').then(() => {
                            next({
                                path: '/login',
                                query: {redirect: redirect}
                            })
                        })
                    })
                    NProgress.done()
                }

你好 请问一下这段代码中,连续分发分发两次loginOut进行调用的目的是什么?是写多了还是?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions