onLoad(option) {
var url = window.location.href;
console.log('window', window);
var url_arr = url.split('/');
var length = url_arr.length;
console.log(length);
console.log('url_Arr', url_arr);
var raceTeamId = '';
if (url_arr[length - 1] != '') {
console.log('==========', url_arr[length - 2]);
var str = url_arr[length - 2];
var reg = new RegExp('#');
var a = str.replace(reg, '');
console.log('a==========', a);
var b = window.atob(a);
option.raceTeamId = b;
} else if (url_arr[length - 2] != '') {
console.log(url_arr[length - 2]);
var str = url_arr[length - 2];
var reg = new RegExp('#');
var a = str.replace(reg, '');
console.log(a);
var b = window.atob(a);
option.raceTeamId = b;
}
if (option.playerId || option.raceTeamId || option.inviter) {
let obj = {
playerId: option.playerId === undefined ? '' : option.playerId,
raceTeamId: option.raceTeamId === undefined ? '' : option.raceTeamId,
inviter: option.inviter === undefined ? '' : option.inviter
};
console.log(obj);
this.query = obj;
}
// this.open();
},