Update login
Some checks failed
Deploy Login / deploy (push) Has been cancelled
Deploy Login / cleanup (push) Has been cancelled

This commit is contained in:
ThienPhamVan
2026-04-08 09:16:58 +07:00
parent 0ef38cb718
commit df8d798310
3 changed files with 14 additions and 3 deletions

View File

@@ -45,6 +45,8 @@ export default {
}
if (this.$route.query.link) this.$store.commit('updateLink', { link: this.$route.query.link });
if (this.$route.query.iframe) this.$store.commit('updateStore', { name: 'iframe', data: this.$route.query.iframe });
if (this.$route.query.module) this.$store.commit('updateStore', { name: 'module', data: this.$route.query.module });
},
computed: {
ismobile: {

View File

@@ -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();

View File

@@ -65,7 +65,8 @@ export const state = () => ({
pagedata3: undefined,
pagedata4: undefined,
settings: [],
iframe: undefined
iframe: undefined,
module: undefined,
})
export const mutations = {