imporve cards animations
This commit is contained in:
@@ -64,6 +64,11 @@ export const useDataStore = defineStore('data', {
|
||||
return state.boxes.find((box) => box.id === id)
|
||||
}
|
||||
},
|
||||
getTrackById: (state) => {
|
||||
return (id: string) => {
|
||||
return state.tracks.find((track) => track.id === id)
|
||||
}
|
||||
},
|
||||
getTracksByboxId: (state) => (id: string, side?: 'A' | 'B') => {
|
||||
const box = state.boxes.find((box) => box.id === id)
|
||||
if (box?.type !== 'compilation' || !side) {
|
||||
|
||||
Reference in New Issue
Block a user