Skip to content

Commit

Permalink
vuex theory
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Dec 19, 2023
1 parent 64451eb commit 333a32a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/view/view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ export default {
// view.vue's compareBuildings() > block.module.js's updateModifier > building_compare.mod.js's updateData() >
// building_compare.mod.js's removeOldCharts() > block.module.js's unloadChart()
console.log(this.cards[0].path)
// Example this.cards[0].path: map/building_29/block_79
// Example call order: map.module.js's map() getter > building.module.js's building() getter >
// block.module's updateModifier function (I think)
await this.$store.dispatch(this.cards[0].path + '/updateModifier', {
name: 'building_compare',
data: {
Expand Down

0 comments on commit 333a32a

Please sign in to comment.