|
@@ -1,57 +0,0 @@
|
|
|
-import Vue from 'vue'
|
|
|
-import VueRouter from 'vue-router'
|
|
|
-import Home from '../views/Home.vue'
|
|
|
-import About from '../views/About.vue'
|
|
|
-
|
|
|
-Vue.use(VueRouter)
|
|
|
-
|
|
|
-const routes = [
|
|
|
- {
|
|
|
- path: '/',
|
|
|
- name: 'Home',
|
|
|
- component: '/dashboard',
|
|
|
-
|
|
|
- children:[
|
|
|
- {
|
|
|
- path: 'dashboard',
|
|
|
- name: 'dashboard',
|
|
|
- component: () => import( '../views/dashboard')
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/pipedma',
|
|
|
- name: 'pipedma',
|
|
|
- component: () => import( '../views/pipedma/index.vue')
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- {
|
|
|
- path: '/about',
|
|
|
- name: 'About',
|
|
|
- component: About,
|
|
|
- redirect: '/51word',
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- children:[
|
|
|
- {
|
|
|
- path: '51word',
|
|
|
- name: '51word',
|
|
|
- component: () => import( '../views/51word')
|
|
|
- },
|
|
|
- ]
|
|
|
- }
|
|
|
-]
|
|
|
-
|
|
|
-const router = new VueRouter({
|
|
|
- routes
|
|
|
-})
|
|
|
-
|
|
|
-export default router
|