falvpingtai/src/router.js
2019-11-27 16:24:31 +08:00

63 lines
1.3 KiB
JavaScript

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"
import IndexReport from "./IndexReport"
import IndexReport1 from "./IndexReport1"
import IndexReport2 from "./IndexReport2"
const router=new Router({
routes: [
{
path: '/',
component: IndexReport
},
{
path: '/IndexReport1',
component: IndexReport1
},
{
path: '/IndexReport2',
component: IndexReport2
},
{
path: '/indexfind',
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;