Closed pcm0nk closed 4 years ago
Hi guys thanks for the free version. is there any specific reason in router folder -> index.js @ line 22 && 24 is resovle instead of resolve
/** * Vue Router * * @library * * https://router.vuejs.org/en/ */ // Lib imports import Vue from 'vue' import VueAnalytics from 'vue-analytics' import Router from 'vue-router' import Meta from 'vue-meta' // Routes import paths from './paths' function route (path, view, name) { return { name: name || view, path, component: (resolve) => import( //SHOULDNT BE resolve ? `@/views/${view}.vue` ).then(resovle) } } Vue.use(Router) // Create a new router const router = new Router({ mode: 'history', routes: paths.map(path => route(path.path, path.view, path.name)).concat([ { path: '*', redirect: '/dashboard' } ]), scrollBehavior (to, from, savedPosition) { if (savedPosition) { return savedPosition } if (to.hash) { return { selector: to.hash } } return { x: 0, y: 0 } } }) Vue.use(Meta) // Bootstrap Analytics // Set in .env // https://github.com/MatteoGabriele/vue-analytics if (process.env.GOOGLE_ANALYTICS) { Vue.use(VueAnalytics, { id: process.env.GOOGLE_ANALYTICS, router, autoTracking: { page: process.env.NODE_ENV !== 'development' } }) }
export default router
Probably a typo
https://github.com/creativetimofficial/vuetify-material-dashboard/pull/5
Closing as resolved.
Hi guys thanks for the free version. is there any specific reason in router folder -> index.js @ line 22 && 24 is resovle instead of resolve
export default router