123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- import Vue from 'vue';
- import Router from 'vue-router';
- Vue.use(Router);
- import Layout from '../pages/layout/Layout.vue';
- import Login from '../pages/login/index';
- // import Team from '../pages/team/index'
- export const pageRoter = [{
- path: '/',
- component: Login,
- redirect: '/login/index',
- // name: 'Team',
- // hidden: true,
- // children: [{
- // path: 'team',
- // component: {template:"<div>有机蔬菜organic</div>"}
- // }]
- },
- {
- path: '/team',
- component: Layout,
- children: [{
- path: 'index',
- name: 'Team',
- component: () => import('@/pages/team/index'),
- }]
- },
- {
- path: '/user',
- component: Layout,
- children: [{
- path: 'index',
- name: 'User',
- component: () => import('@/pages/user/index'),
- }]
- },
- {
- path: '/project',
- component: Layout,
- children: [{
- path: 'index',
- name: 'Project',
- component: () => import('@/pages/project/index'),
- }]
- },
- {
- path: '/product',
- component: Layout,
- children: [{
- path: 'index',
- name: 'Product',
- component: () => import('@/pages/product/index'),
- }]
- },
- {
- path: '/costType',
- component: Layout,
- children: [{
- path: 'index',
- name: 'CostType',
- component: () => import('@/pages/costType/index'),
- }]
- },
- {
- path: '/costTeam',
- component: Layout,
- children: [{
- path: 'index',
- name: 'CostTeam',
- component: () => import('@/pages/costTeam/index'),
- }]
- },
- {
- path: '/manage',
- component: Layout,
- children: [{
- path: 'index',
- name: 'Manage',
- component: () => import('@/pages/manage/index'),
- },
- {
- path: 'query',
- name: 'Manage',
- component: () => import('@/pages/manage/query'),
- }, {
- path: 'cost',
- name: 'Manage',
- component: () => import('@/pages/manage/cost'),
- }
- ]
- }
- ]
- export default new Router({
- // mode: 'history', //后端支持可开
- scrollBehavior: () => ({
- y: 0
- }),
- routes: pageRoter
- })
|