Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import VueRouter from 'vue-router';
import { Vue } from 'vue-property-decorator';
Vue.use(VueRouter);
export function router() {
return new VueRouter({
mode: 'history',
routes: [
{
path: '/',
component: () => import('./Cities.vue'),
}
]
});
}
vendor.forEach(library => Vue.use(library));
import VueRouter from 'vue-router';
import { Vue } from 'vue-property-decorator';
import { citiesModule } from './cities';
import { weatherModule } from './weather';
Vue.use(VueRouter);
export function router() {
return new VueRouter({
mode: 'history',
routes: [
{
path: '/',
redirect: '/weather',
},
...citiesModule.routes(),
...weatherModule.routes()
]
});
}
constructor() {
containerBuilder();
Vue.use(new Filters());
vendor.forEach(library => Vue.use(library));
this.bootstrap();
}