|  |  |  | 
|---|
|  |  |  | import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router' | 
|---|
|  |  |  | import form from './form' | 
|---|
|  |  |  | import formsMulti from './formsMulti' | 
|---|
|  |  |  | import tables from './tables' | 
|---|
|  |  |  | import viewgird from './viewGird' | 
|---|
|  |  |  | import store from '../store/index' | 
|---|
|  |  |  | import redirect from './redirect' | 
|---|
|  |  |  | import charts from './charts' | 
|---|
|  |  |  | const routes = [ | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/', | 
|---|
|  |  |  | 
|---|
|  |  |  | component: () => import('@/views/Index'), | 
|---|
|  |  |  | redirect: '/home', | 
|---|
|  |  |  | children: [ | 
|---|
|  |  |  | ...form,//Demo表单路由 | 
|---|
|  |  |  | ...formsMulti, | 
|---|
|  |  |  | ...tables,//tables | 
|---|
|  |  |  | ...viewgird, | 
|---|
|  |  |  | ...redirect, | 
|---|
|  |  |  | ...charts, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/home', | 
|---|
|  |  |  | name: 'home', | 
|---|
|  |  |  | 
|---|
|  |  |  | }, { | 
|---|
|  |  |  | path: '/UserInfo', | 
|---|
|  |  |  | name: 'UserInfo', | 
|---|
|  |  |  | component: () => import('@/views/system/UserInfo.vue') | 
|---|
|  |  |  | component: () => import('@/views/system/UserInfo.vue'), | 
|---|
|  |  |  | meta: { | 
|---|
|  |  |  | keepAlive: false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/sysMenu', | 
|---|
|  |  |  | name: 'sysMenu', | 
|---|
|  |  |  | component: () => import('@/views/system/Sys_Menu.vue') | 
|---|
|  |  |  | }, { | 
|---|
|  |  |  | path: '/coder', | 
|---|
|  |  |  | name: 'coder', | 
|---|
|  |  |  | component: () => import('@/views/builder/coder.vue') | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/formDraggable',  //表单设计 | 
|---|
|  |  |  | name: 'formDraggable', | 
|---|
|  |  |  | component: () => import('@/views/formDraggable/formDraggable.vue') | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/formSubmit',  //表单提交页面 | 
|---|
|  |  |  | name: 'formSubmit', | 
|---|
|  |  |  | component: () => import('@/views/formDraggable/FormSubmit.vue'), | 
|---|
|  |  |  | meta:{ | 
|---|
|  |  |  | keepAlive:false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/formCollectionResultTree',  //显示收集的数据表单 | 
|---|
|  |  |  | name: 'formCollectionResultTree', | 
|---|
|  |  |  | component: () => import('@/views/formDraggable/FormCollectionResultTree.vue'), | 
|---|
|  |  |  | meta:{ | 
|---|
|  |  |  | keepAlive:false | 
|---|
|  |  |  | component: () => import('@/views/system/Sys_Menu.vue'), | 
|---|
|  |  |  | meta: { | 
|---|
|  |  |  | keepAlive: false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | keepAlive:false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/flowdemo', //发起流程示例 | 
|---|
|  |  |  | name: 'flowdemo', | 
|---|
|  |  |  | component: () => import('@/views/system/flow/FlowDemo.vue'), | 
|---|
|  |  |  | meta: { | 
|---|
|  |  |  | keepAlive: false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | anonymous:true | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/app/guide', | 
|---|
|  |  |  | name: 'apphome', | 
|---|
|  |  |  | meta: { | 
|---|
|  |  |  | anonymous: true | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | component: () => import('@/views/h5/Guide.vue'), | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | path: '/bigdata', | 
|---|
|  |  |  | name: 'bigdata', | 
|---|
|  |  |  | component: () => import('@/views/charts/bigdata.vue'), | 
|---|
|  |  |  | meta: { | 
|---|
|  |  |  | keepAlive: false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const router = createRouter({ | 
|---|