|  | @@ -3,6 +3,18 @@ import VueRouter from 'vue-router'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import DefaultLayout from '@/layouts/DefaultLayout/index.vue'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import page from './modules/page'
 | 
	
		
			
				|  |  | +import form from './modules/form'
 | 
	
		
			
				|  |  | +import template from './modules/template'
 | 
	
		
			
				|  |  | +import list from './modules/list'
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +// 全局处理路由导航重复
 | 
	
		
			
				|  |  | +const originalPush = VueRouter.prototype.push
 | 
	
		
			
				|  |  | +VueRouter.prototype.push = function push(location, onResolve, onReject) {
 | 
	
		
			
				|  |  | +  if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject)
 | 
	
		
			
				|  |  | +  return originalPush.call(this, location).catch(err => err)
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  Vue.use(VueRouter)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export const routes = [
 | 
	
	
		
			
				|  | @@ -23,84 +35,10 @@ export const routes = [
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      ]
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  {
 | 
	
		
			
				|  |  | -    path: '/template',
 | 
	
		
			
				|  |  | -    component: DefaultLayout,
 | 
	
		
			
				|  |  | -    redirect: '/list',
 | 
	
		
			
				|  |  | -    meta: {
 | 
	
		
			
				|  |  | -      title: '模板管理'
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -    children: [
 | 
	
		
			
				|  |  | -      {
 | 
	
		
			
				|  |  | -        path: 'list',
 | 
	
		
			
				|  |  | -        name: 'templateList',
 | 
	
		
			
				|  |  | -        meta: {
 | 
	
		
			
				|  |  | -          title: '模板列表'
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  | -        component: () => import('@/views/Template/List/index.vue')
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -    ]
 | 
	
		
			
				|  |  | -  },
 | 
	
		
			
				|  |  | -  {
 | 
	
		
			
				|  |  | -    path: '/form',
 | 
	
		
			
				|  |  | -    component: DefaultLayout,
 | 
	
		
			
				|  |  | -    redirect: '/design',
 | 
	
		
			
				|  |  | -    meta: {
 | 
	
		
			
				|  |  | -      title: '表单管理'
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -    children: [
 | 
	
		
			
				|  |  | -      {
 | 
	
		
			
				|  |  | -        path: 'design',
 | 
	
		
			
				|  |  | -        name: 'formDesign',
 | 
	
		
			
				|  |  | -        meta: {
 | 
	
		
			
				|  |  | -          title: '表单设计'
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  | -        component: () => import('@/views/Form/FormDesign/Home.vue')
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | -      {
 | 
	
		
			
				|  |  | -        path: 'model',
 | 
	
		
			
				|  |  | -        name: 'formModel',
 | 
	
		
			
				|  |  | -        meta: {
 | 
	
		
			
				|  |  | -          title: '表单模型'
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  | -        component: () => import('@/views/Form/FormModel/index.vue')
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | -      {
 | 
	
		
			
				|  |  | -        path: '/parser',
 | 
	
		
			
				|  |  | -        name: 'parser',
 | 
	
		
			
				|  |  | -        meta: {
 | 
	
		
			
				|  |  | -          title: '表单解析'
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  | -        component: () => import(/* webpackChunkName: "parser-example" */'@/components/parser/example/Index.vue')
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -    ]
 | 
	
		
			
				|  |  | -  },
 | 
	
		
			
				|  |  | -  {
 | 
	
		
			
				|  |  | -    path: '/list',
 | 
	
		
			
				|  |  | -    component: DefaultLayout,
 | 
	
		
			
				|  |  | -    redirect: '/design',
 | 
	
		
			
				|  |  | -    meta: {
 | 
	
		
			
				|  |  | -      title: '列表管理'
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -    children: [
 | 
	
		
			
				|  |  | -      {
 | 
	
		
			
				|  |  | -        path: 'design',
 | 
	
		
			
				|  |  | -        name: 'listDesign',
 | 
	
		
			
				|  |  | -        meta: {
 | 
	
		
			
				|  |  | -          title: '列表设计'
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  | -        component: () => import('@/views/List/ListDesign/index.vue')
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | -      {
 | 
	
		
			
				|  |  | -        path: 'model',
 | 
	
		
			
				|  |  | -        name: 'listModel',
 | 
	
		
			
				|  |  | -        meta: {
 | 
	
		
			
				|  |  | -          title: '列表模型'
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  | -        component: () => import('@/views/List/ListModel/index.vue')
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -    ]
 | 
	
		
			
				|  |  | -  },
 | 
	
		
			
				|  |  | +  ...page,
 | 
	
		
			
				|  |  | +  ...template,
 | 
	
		
			
				|  |  | +  ...form,
 | 
	
		
			
				|  |  | +  ...list,
 | 
	
		
			
				|  |  |    {
 | 
	
		
			
				|  |  |      path: '/tinymce',
 | 
	
		
			
				|  |  |      name: 'tinymce',
 |