Update login
This commit is contained in:
@@ -244,6 +244,14 @@ export default {
|
||||
this.$store.commit('updateViewPort', { viewport: val });
|
||||
},
|
||||
},
|
||||
module: {
|
||||
get: function () {
|
||||
return this.$store.state['module'];
|
||||
},
|
||||
set: function (val) {
|
||||
this.$store.commit('updateStore', { name: 'module', data: val });
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
checkError() {
|
||||
@@ -373,7 +381,7 @@ export default {
|
||||
// let userapps = await this.$getdata('userapps', { user: data.id, apps__code: this.module }, undefined, true);
|
||||
// if (!userapps) return this.$router.push('/welcome');
|
||||
// }
|
||||
|
||||
|
||||
this.login = data; //store login
|
||||
if (this.$store.state.link) {
|
||||
let ele = this.$copy(data);
|
||||
@@ -393,7 +401,7 @@ export default {
|
||||
if (data.type === 3 && link.indexOf('y99') >= 0) {
|
||||
link = link.indexOf('dev') >= 0 ? '' : '';
|
||||
}
|
||||
let href = `${link}?username=${ele.username}&token=${ele.token}&fullname=${ele.fullname}&userid=${ele.id}`;
|
||||
let href = `${link}?email=${ele.email}&token=${ele.token}&fullname=${ele.fullname}&userid=${ele.id}`;
|
||||
if (ele.avatar) href = `${href}&avatar=${ele.avatar}`;
|
||||
window.location.href = href;
|
||||
} else this.redirectUrl();
|
||||
|
||||
Reference in New Issue
Block a user