Add routing, state mgmt and train types
This commit is contained in:
17
src/store/store.js
Normal file
17
src/store/store.js
Normal file
@ -0,0 +1,17 @@
|
||||
import { reactive } from 'vue'
|
||||
|
||||
export const store = reactive({
|
||||
insights: {},
|
||||
latestTrain: {},
|
||||
earliestTrain: {},
|
||||
|
||||
setInsights(insights) {
|
||||
this.insights = insights
|
||||
},
|
||||
setLatestTrain(latestTrain) {
|
||||
this.latestTrain = latestTrain
|
||||
},
|
||||
setEarliestTrain(earliestTrain) {
|
||||
this.earliestTrain = earliestTrain
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user