|
|
@ -34,11 +34,19 @@ export default { |
|
|
|
showProfileDialog: false |
|
|
|
}), |
|
|
|
methods: { |
|
|
|
getPlayer(s64) { |
|
|
|
if (this.steam64.length === 0 && s64 === undefined) return; |
|
|
|
getPlayer() { |
|
|
|
if (this.steam64.length === 0) return; |
|
|
|
return this.loadProfile(this.steam64); |
|
|
|
}, |
|
|
|
getPlayerWithSteam(steam64){ |
|
|
|
console.log("Get other"); |
|
|
|
console.log(steam64); |
|
|
|
return this.loadProfile(steam64); |
|
|
|
}, |
|
|
|
loadProfile(steam64){ |
|
|
|
this.showProfileDialog = true; |
|
|
|
this.loading = true; |
|
|
|
axios.get(`/api/profile/web?steam64=${s64===undefined?this.steam64:s64}&requests=${PLAYER_REQUESTS}`).then(response => { |
|
|
|
axios.get(`/api/profile/web?steam64=${steam64}&requests=${PLAYER_REQUESTS}`).then(response => { |
|
|
|
if (response.status === 200) this.player = response.data; |
|
|
|
else console.log("not permition"); |
|
|
|
}).catch((err) => { |
|
|
|