falvpingtai/src/router.js
2019-11-28 11:19:20 +08:00

74 lines
1.5 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"
import Answer from "./Answer"
import sign from "./sign"
const router=new Router({
routes: [
{
path: '/sign',
component: sign
},
{
path: '/IndexReport',
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
}
,
{
path: '/Answer',
component: Answer
}
]
});
export default router;