增加用户管理功能。管理员可以添加删除用户、修改用户密码、重置pushkey
This commit is contained in:
@@ -86,7 +86,7 @@ export default {
|
||||
}).then(function (res) {
|
||||
console.log(JSON.stringify(res));
|
||||
if (res.data.code == 0 && res.data.msg == "success") {
|
||||
that.$cookies.set("session", {"username": that.username}) ;
|
||||
that.$cookies.set("session", {"username": that.username,"roleId":res.data.data.role.id}) ;
|
||||
//登录成功后
|
||||
that.cancelEnterkeyDefaultAction();
|
||||
that.$router.push('/');
|
||||
|
||||
Reference in New Issue
Block a user