mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +00:00
fix: don't make summoner basic request if we only change tab
This commit is contained in:
parent
81becdf390
commit
85bbf7faf9
1 changed files with 3 additions and 1 deletions
|
|
@ -160,7 +160,9 @@ export default {
|
|||
},
|
||||
|
||||
watch: {
|
||||
$route() {
|
||||
$route(to, from) {
|
||||
if (from.params.region === to.params.region && from.params.name === to.params.name)
|
||||
return
|
||||
this.apiCall()
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue