diff --git a/examples/routes-meta/middleware/theme.js b/examples/routes-meta/middleware/theme.js index b2cd3f1759..91cb0e85e0 100644 --- a/examples/routes-meta/middleware/theme.js +++ b/examples/routes-meta/middleware/theme.js @@ -1,5 +1,5 @@ -export default ({ route, app }) => { +export default ({ route, store }) => { // Take the last value (latest route child) const theme = route.meta.reduce((theme, meta) => meta.theme || theme, 'light') - app.store.commit('SET_THEME', theme) + store.commit('SET_THEME', theme) }