mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-07 18:08:36 -06:00
Properly swtich Character.vue over to PRELOAD_CHARACTER
- This was done a while ago, but I just forgot to commit it because I've had a bunch of inactive unstaged changes in Character.vue sitting here for a while. I guess it's time to finally address them, huh?
This commit is contained in:
@@ -75,9 +75,12 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.fetchCharacter();
|
||||
},
|
||||
methods: {
|
||||
fetchCharacter() {
|
||||
this.$store.dispatch(types.FETCH_CHARACTER, this.$route.params.character)
|
||||
this.$store.dispatch(types.PRELOAD_CHARACTERS)
|
||||
.then(() => {
|
||||
this.character = this.$store.getters.getCharacter(this.$route.params.character);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user