目录结构 router.js
import Vue from vue
import Router from vue-router
import Login from ./components/Login.vue
import Home from ./components/Home.vue
Vue.use(Router)export default new Router({routes:[{path:/,redirect:/login},{path:/login,component:Login},{…
目录结构 router.js
import Vue from vue
import Router from vue-router
import Login from ./components/Login.vue
import Home from ./components/Home.vueVue.use(Router)const router new Router({routes:[{path:/,redirect:/login},{path:/login,component:Login},{pat…
目录结构 router.js
import Vue from vue
import Router from vue-router
import Login from ./components/Login.vue
import Home from ./components/Home.vueVue.use(Router)const router new Router({routes:[{path:/,redirect:/login},{path:/login,component:Login},{pat…
目录结构 router.js
import Vue from vue
import Router from vue-router
import Login from ./components/Login.vue
import Home from ./components/Home.vueVue.use(Router)const router new Router({routes:[{path:/,redirect:/login},{path:/login,component:Login},{pat…