Commit b0d1fe80 authored by liwenhong's avatar liwenhong

add:重新登录清除用户

parent 19109ed5
......@@ -101,7 +101,7 @@ export default {
},
mounted() {
this.roleId = this.$route.query.roleId;
let { email } = this.$store.state.userInfo;
let email = this.$store.state.userInfo;
reqGetAll_role_list(email, this.appId).then((res) => {
this.permissionsAll = res.permissions;
});
......
......@@ -50,8 +50,9 @@ export default {
},
methods: {
...mapActions(['userLogin']),
...mapActions(['userLogin', 'logout']),
async login () {
this.logout()
const { email } = this.userInfo;
let validEmail = email.match(/@yidian-inc.com|@linkingcities/);
if (!email) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment