index.js 3.88 KB
import Vue from 'vue'
import Router from 'vue-router'
import index from '@/page/index'
import tool from '@/page/tool'
import activityConfig from '@/page/activityConfig'
import activityConfigRedis from '@/page/activityConfigRedis'
import userInfo from '@/page/userInfo'
import callLinuxCommand from '@/page/callLinuxCommand'
import callLinuxLogByUid from '@/page/callLinuxLogByUid'
import apiTest from '@/page/apiTest'
import apiTestAime from '@/page/apiTestAime'
import tjUser from '@/page/tjUser'
import nlp from '@/page/nlp'
import toolAime from '@/page/toolAime'
import nlpApi from '@/page/nlpApi'
import hadoop from '@/page/hadoop'
import queryProvince from '@/page/queryProvince'
import selectActStart from '@/page/selectActStart'
import androidCode from '@/page/androidCode'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: index,
      meta: {
        title: '测试工具平台'
      },
      children:[
        {
          path:'/',
          component:tool,
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/tool',
          component: tool,
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/activityConfig',
          component: activityConfig,
          name: 'activityConfig',
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/activityConfigRedis',
          component: activityConfigRedis,
          name: 'activityConfigRedis',
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/userInfo',
          component: userInfo,
          name: 'userInfo',
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/callLinuxCommand',
          component: callLinuxCommand,
          name: 'callLinuxCommand',
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/callLinuxLogByUid',
          component: callLinuxLogByUid,
          name: 'callLinuxLogByUid',
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/selectActStart',
          component: selectActStart,
          name: 'selectActStart',
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/queryProvince',
          component: queryProvince,
          name: 'queryProvince',
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/tjUser',
          component: tjUser,
          name: 'tjUser',
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/nlp',
          component: nlp,
          name: 'nlp',
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/toolAime',
          component: toolAime,
          name: 'toolAime',
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/hadoop',
          component: hadoop,
          name: 'hadoop',
          meta: {
            title: '测试工具平台'
          }
        },
        {
          path: '/androidCode',
          component: androidCode,
          name: 'androidCode',
          meta: {
            title: '测试工具平台'
          }
        }
      ]
    },
    {
      path: '/apiTest',
      component: apiTest,
      name: 'apiTest',
      meta: {
        title: '测试工具平台'
      }
    },
    {
      path: '/apiTestAime',
      component: apiTestAime,
      name: 'apiTestAime',
      meta: {
        title: '测试工具平台'
      }
    },
    {
      path: '/nlpApi',
      component: nlpApi,
      name: 'nlpApi',
      meta: {
        title: '测试工具平台'
      }
    }
  ]
})