Nuxt/examples/middleware/middleware/visits.js
2017-05-09 14:43:47 +02:00

4 lines
97 B
JavaScript

export default function ({ store, route, redirect }) {
store.commit('ADD_VISIT', route.path)
}