mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +00:00
refactor(front): update summoners/live payload
This commit is contained in:
parent
3550ec2832
commit
b045615862
1 changed files with 8 additions and 3 deletions
|
|
@ -155,9 +155,14 @@ export const actions = {
|
|||
},
|
||||
async liveMatchRequest({ commit, rootState }) {
|
||||
commit('LIVE_LOADING')
|
||||
const region = rootState.regionsList[rootState.settings.region]
|
||||
|
||||
const resp = await axios(({ url: 'summoner/live', data: { account: state.basic.account, region }, method: 'POST' })).catch(() => { })
|
||||
const resp = await axios(({
|
||||
url: 'summoner/live',
|
||||
data: {
|
||||
id: state.basic.account.id,
|
||||
region: rootState.regionsList[rootState.settings.region]
|
||||
},
|
||||
method: 'POST'
|
||||
})).catch(() => { })
|
||||
console.log('---LIVE---')
|
||||
console.log(resp.data)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue