import Vue from 'vue' import Router from 'vue-router' /** 头部导航 */ import HeaderNav from './components/HeaderNav' /** 尾部导航 */ import FooterNav from './components/FooterNav' /** 分页器 */ import PagingDevice from './components/PagingDevice' /** 首页 */ import HomePage from './views/home/HomePage' /** 党组织申请 */ import ApplyFor from './views/home/ApplyFor' /** 新闻详情 */ import NewsDetails from './views/home/NewsDetails' /** 新闻列表 */ import NewsList from './views/home/NewsList' /** 登录 */ import Login from './views/Login' /** 注册 */ import Registered from './views/Registered' /** 项目管理 */ import Project from './views/project/Project' /** 项目进度 */ import Schedule from './views/project/Schedule' /** 项目创建 */ import Application from './views/project/Application' /** 个人中心 */ import PersonalZte from './views/personal/PersonalZte' /** 党组织申请 */ import Apply from './views/personal/Apply' /** 我的收藏 */ import Collection from './views/personal/Collection' /** 项目申报 */ import Declare from './views/personal/Declare' /** 修改密码 */ import Modify from './views/personal/Modify' /** 信息查询 */ import InformationQuery from './views/InformationQuery' Vue.use(Router) export default new Router({ mode: 'hash', base: process.env.BASE_URL, routes: [ /** 头部导航 */ { path: '/headerNav', name: 'headerNav', component: HeaderNav }, /** 尾部导航 */ { path: '/footerNav', name: 'footerNav', component: FooterNav }, /** 分页器 */ { path: '/pagingDevice', name: 'pagingDevice', component: PagingDevice }, /** 信息查询 */ { path: '/informationQuery', name: 'informationQuery', component: InformationQuery }, /** 修改密码 */ { path: '/modify', name: 'modify', meta: { requireAuth: true }, component: Modify }, /** 项目申报 */ { path: '/declare', name: 'declare', meta: { requireAuth: true }, component: Declare }, /** 我的收藏 */ { path: '/collection', name: 'collection', meta: { requireAuth: true }, component: Collection }, /** 党组织申请 */ { path: '/apply', name: 'apply', meta: { requireAuth: true }, component: Apply }, /** 个人中心 */ { path: '/personalZte', name: 'personalZte', meta: { requireAuth: true }, component: PersonalZte }, /** 项目创建 */ { path: '/application', name: 'application', meta: { requireAuth: true }, component: Application }, /** 项目进度 */ { path: '/schedule', name: 'schedule', meta: { requireAuth: true }, component: Schedule }, /** 项目管理 */ { path: '/project', name: 'project', meta: { requireAuth: true }, component: Project }, /** 注册 */ { path: '/registered', name: 'registered', component: Registered }, /** 登录 */ { path: '/login', name: 'login', component: Login }, /** 新闻列表 */ { path: '/newsList', name: 'newsList', component: NewsList }, /** 新闻详情 */ { path: '/newsDetails', name: 'newsDetails', component: NewsDetails }, /** 党组织申请 */ { path: '/applyFor', name: 'applyFor', meta: { requireAuth: true }, component: ApplyFor }, /** 首页 */ { path: '/', name: 'homePage', component: HomePage } ] })