text: import Vue from "vue";
  import Router from "vue-router";
  import AppHeader from "./layout/AppHeader";
  import AppFooter from "./layout/AppFooter";
  import Home from "./views/Home";
  
  Vue.use(Router);
  
  export default new Router({
    linkExactActiveClass: "active",
    routes: [
      {
        path: "/",
        name: "home",
        components: {
          header: AppHeader,
          default: Home,
          footer: AppFooter
        }
      },
    ],
    scrollBehavior: to => {
      if (to.hash) {
        return { selector: to.hash };
      } else {
        return { x: 0, y: 0 };
      }
    }
  });
  