Created
August 12, 2020 18:55
-
-
Save kop7/5510de2241dfcab1fbfaa6b9bbc7a7d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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