Commit b0d1fe80 authored by liwenhong's avatar liwenhong

add:重新登录清除用户

parent 19109ed5
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
}, },
mounted() { mounted() {
this.roleId = this.$route.query.roleId; 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) => { reqGetAll_role_list(email, this.appId).then((res) => {
this.permissionsAll = res.permissions; this.permissionsAll = res.permissions;
}); });
......
...@@ -50,8 +50,9 @@ export default { ...@@ -50,8 +50,9 @@ export default {
}, },
methods: { methods: {
...mapActions(['userLogin']), ...mapActions(['userLogin', 'logout']),
async login () { async login () {
this.logout()
const { email } = this.userInfo; const { email } = this.userInfo;
let validEmail = email.match(/@yidian-inc.com|@linkingcities/); let validEmail = email.match(/@yidian-inc.com|@linkingcities/);
if (!email) { 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