import Vue from 'vue' //1.导入路由组件vue-router import Router from 'vue-router' //2.调用vue-router Vue.use(Router) import PersonalHomepage from "./PersonalHomepage" import index from "./index" // import PersonalHomepage from "./PersonalHomepage" import ManualAppeal from "./ManualAppeal" import IndexArticleDetail from "./IndexArticleDetail" import login from "./login" import loginpwd from "./loginpwd" import indexfind from "./IndexFind" const router=new Router({ routes: [ { path: '/', component: indexfind }, { path: '/loginpwd', component: loginpwd }, { path: '/login', component: login }, { path: '/index', component: index }, { path: '/IndexArticleDetaill', component: IndexArticleDetail }, { path: '/ManualAppeal', component: ManualAppeal }, { path: '/PersonalHomepage', component: PersonalHomepage } ] }); export default router;