falvpingtai/src/router.js

38 lines
800 B
JavaScript
Raw Normal View History

2019-11-25 08:43:09 +08:00
import Vue from 'vue'
//1.导入路由组件vue-router
import Router from 'vue-router'
//2.调用vue-router
Vue.use(Router)
2019-11-25 09:07:42 +08:00
import PersonalHomepage from "./PersonalHomepage"
2019-11-25 15:27:58 +08:00
import index from "./index"
2019-11-25 14:16:41 +08:00
// import PersonalHomepage from "./PersonalHomepage"
import ManualAppeal from "./ManualAppeal"
2019-11-25 15:50:30 +08:00
import IndexArticleDetail from "./IndexArticleDetail"
2019-11-26 11:54:01 +08:00
import login from "./login"
2019-11-25 08:43:09 +08:00
const router=new Router({
routes: [
2019-11-25 08:44:51 +08:00
{
path: '/',
2019-11-26 11:54:01 +08:00
component: login
},
{
path: '/index',
2019-11-25 15:27:58 +08:00
component: index
},
2019-11-25 15:51:59 +08:00
{
2019-11-25 16:59:20 +08:00
path: '/IndexArticleDetaill',
2019-11-25 15:50:30 +08:00
component: IndexArticleDetail
},
{
path: '/ManualAppeal',
2019-11-25 14:16:41 +08:00
component: ManualAppeal
2019-11-25 15:33:44 +08:00
},
2019-11-25 15:27:58 +08:00
{
path: '/PersonalHomepage',
2019-11-25 09:07:42 +08:00
component: PersonalHomepage
2019-11-25 08:44:51 +08:00
}
2019-11-25 14:16:41 +08:00
2019-11-25 08:43:09 +08:00
]
});
2019-11-25 08:44:51 +08:00
export default router;