feat: init board game game
This commit is contained in:
20
src/modules/5s/board-game-store.ts
Normal file
20
src/modules/5s/board-game-store.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { boardGames } from '@/modules/5s/types/board-games'
|
||||
import { BoardGame } from '@/modules/5s/types/workshop'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
type State = {
|
||||
boardGames: BoardGame[]
|
||||
currentBoardGame: BoardGame | null
|
||||
}
|
||||
|
||||
export const useBoardGameStore = defineStore('day', {
|
||||
state: (): State => ({
|
||||
boardGames: [],
|
||||
currentBoardGame: null
|
||||
}),
|
||||
actions: {
|
||||
initGame() {
|
||||
this.currentBoardGame = boardGames[0]
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user