Skip to content

Instantly share code, notes, and snippets.

@kop7
Created August 12, 2020 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kop7/5510de2241dfcab1fbfaa6b9bbc7a7d9 to your computer and use it in GitHub Desktop.
Save kop7/5510de2241dfcab1fbfaa6b9bbc7a7d9 to your computer and use it in GitHub Desktop.
import Vue from 'vue'
import Router from 'vue-router'
import Home from "@/components/Home";
Vue.use(Router)
export default new Router({
mode: 'history',
routes: [
{ path: '/', redirect: { name: 'home' } },
{ path: '/home', name: 'home', component: Home },
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment