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

增加基于vue-router,vuex的权限控制 #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hiant
Copy link
Contributor

@hiant hiant commented May 19, 2017

目前只支持菜单跳转的权限控制,使用mockjs模拟登录及权限数据,由于是随机数据,如果遇到登录失败请重试,权限也是随机的。。。

@@ -23,14 +23,14 @@
},
computed:{
username(){
let username = localStorage.getItem('ms_username');
let username = this.$store.state.user.username;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use const instead

@Augly
Copy link

Augly commented Oct 29, 2018

加个微信好友呀!朋友

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

Successfully merging this pull request may close these issues.

None yet

3 participants