Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

role.js文件中的代码 #1

Open
hongtongtong opened this issue Jun 21, 2018 · 5 comments
Open

role.js文件中的代码 #1

hongtongtong opened this issue Jun 21, 2018 · 5 comments

Comments

@hongtongtong
Copy link

                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进行调用的目的是什么?是写多了还是?

@lmxdawn
Copy link
Owner

lmxdawn commented Jul 13, 2018

是写多了, 已经去掉

@JamesHaii
Copy link

请问请求后台为什么说网络不给于权限,是为什么

@JamesHaii
Copy link

我的接口配置没有弄对吗

@lmxdawn
Copy link
Owner

lmxdawn commented Nov 8, 2018

我的接口配置没有弄对吗

能描述得具体一些?

@JamesHaii
Copy link

加我qq 282190562

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants