mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: switch of summoner with input field works again
This commit is contained in:
parent
e00e872b67
commit
aad62a3094
3 changed files with 3 additions and 1 deletions
|
|
@ -136,6 +136,7 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
uri() {
|
uri() {
|
||||||
console.log('route changed')
|
console.log('route changed')
|
||||||
|
// console.log(this.$router.currentRoute)
|
||||||
this.updateCurrentRegion(this.region)
|
this.updateCurrentRegion(this.region)
|
||||||
this.apiCall()
|
this.apiCall()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ export const mutations = {
|
||||||
BASIC_REQUEST(state) {
|
BASIC_REQUEST(state) {
|
||||||
state.basic.status = 'loading'
|
state.basic.status = 'loading'
|
||||||
state.champions.championsLoaded = false
|
state.champions.championsLoaded = false
|
||||||
|
state.overview.loaded = false
|
||||||
},
|
},
|
||||||
CHAMPIONS_FOUND(state, { champions }) {
|
CHAMPIONS_FOUND(state, { champions }) {
|
||||||
state.champions.list = champions
|
state.champions.list = champions
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ export default {
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
fetchData() {
|
fetchData() {
|
||||||
if (this.summonerFound) {
|
if (!this.overviewLoaded && this.summonerFound) {
|
||||||
console.log('FETCHING OVERVIEW')
|
console.log('FETCHING OVERVIEW')
|
||||||
this.overviewRequest()
|
this.overviewRequest()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue