import Vue from 'vue';
import VueRouter from 'vue-router';
import App from './App';

Vue.use(VueRouter);

const Main = Vue.extend({});
const router = new VueRouter();

router.map({
  '/': { component: App },
});

router.start(Main, 'body');

import Vue from 'vue';
import VueRouter from 'vue-router';
import App from './App';

Vue.use(VueRouter);

const Main = Vue.extend({});
const router = new VueRouter({ history: true });

router.map({
  '/': { component: App },
});

router.start(Main, 'body');

Use history option for vue-router
Use history option for vue-router
