1
0
mirror of https://github.com/nuxt/nuxt.git synced 2024-12-12 15:27:13 +00:00
Nuxt/examples/middleware/store/index.js
Sébastien Chopin 1d0493c0c1 Fix paths
2017-07-08 19:58:07 +02:00

13 lines
183 B
JavaScript

export const state = () => ({
visits: []
})
export const mutations = {
ADD_VISIT (state, path) {
state.visits.push({
path,
date: new Date().toJSON()
})
}
}