Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

杨树贤 / kefu_server

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Find file
Normal viewHistoryPermalink
Switch branch/tag
  • kefu_server
  • ui
  • kefu_client
  • src
  • router.js
router.js 865 Bytes
keith's avatar
update
98c8f64f
 
keith committed 5 years ago
1 2 3 4 5 6 7 8 9
import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
const router = new Router({
    base: process.env.BASE_URL,
    routes: [
        {
            path: '/',
chenxianqi's avatar
update code
825ca73b
 
chenxianqi committed 5 years ago
10 11 12 13 14
            redirect: '/index'
        },
        {
            path: '/index',
            name: 'index',
keith's avatar
update
98c8f64f
 
keith committed 5 years ago
15 16 17 18 19 20 21 22 23 24 25 26 27
            component: () => import('./views/kefu.vue')
        },
        {
            path: '/workorder',
            name: 'workorder',
            component: () => import('./views/workorder.vue')
        },
        {
            path: '/workorder/create',
            name: 'workorder_create',
            component: () => import('./views/workorder_create.vue')
        },
        {
chenxianqi's avatar
update code
e3a7f5bd
 
chenxianqi committed 5 years ago
28
            path: '/workorder/detail/:id',
keith's avatar
update
98c8f64f
 
keith committed 5 years ago
29 30 31 32 33 34 35
            name: 'workorder_detail',
            component: () => import('./views/workorder_detail.vue')
        },
    ]
})

export default router