fixed getting money in profile page

This commit is contained in:
Kostya
2023-12-14 20:25:03 +03:00
parent 5b4ab39655
commit 2079f6b4dc

View File

@@ -75,12 +75,16 @@ export default {
}, },
created() { created() {
this.username = GetCookie('SpUserName') this.username = GetCookie('SpUserName')
const authcode = GetCookie('AUTHTOKEN')
const searchtoken = GetCookie('SearchToken')
console.log('AUTHCODE AND SEARCH TOKEN - ', authcode, searchtoken)
this.balance = GetCurrentMoney(authcode, searchtoken) GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
console.log('Created Hook - Profile page = balance = ', this.balance) .then((response) => {
this.balance = response.currentMoney
console.log('balance in profile', this.balance)
})
.catch((error) => {
console.error('error in profile, get money', error)
})
this.imageUrl = `https://visage.surgeplay.com/front/256/${this.username}` this.imageUrl = `https://visage.surgeplay.com/front/256/${this.username}`
}, },
methods: { methods: {