GuoYuFu123 5 years ago
parent
commit
da1a7450ae
1 changed files with 16 additions and 16 deletions
  1. 16 16
      src/router/system.js

+ 16 - 16
src/router/system.js

@@ -3,9 +3,9 @@ import LayoutMain from '@/framework/layout/Main'
 import Login from '@/framework/layout/Login'
 import Dasboard from '@/views/dasboard'
 
-import UserList from '@/views/system/user/UserList'
-import RoleList from '@/views/system/role/RoleList'
-import ChangePwd from '@/views/system/pwd/ChangePwd'
+// import UserList from '@/views/system/user/UserList'
+// import RoleList from '@/views/system/role/RoleList'
+// import ChangePwd from '@/views/system/pwd/ChangePwd'
 
 /** 报警设置 */
 const ProjAlarm = () => import('@/views/alarm/projalarm/index')
@@ -17,30 +17,30 @@ const ProjSop = () => import('@/views/fm/projectsop/index')
 const ProjRules = () => import('@/views/fm/projectrule')
 
 /**点位部分 */
-import pointConfig from '@/views/point/config_point'
-import editDataSouce from '@/views/point/config_point/edit_origin'
-import pointSteps from '@/views/point/config_point/steps'
+const pointConfig = () => import('@/views/point/config_point')
+const editDataSouce = () => import('@/views/point/config_point/edit_origin')
+const pointSteps = () => import('@/views/point/config_point/steps')
 
 /**项目化配置 */
-import collectsetting from '@/views/project_setting/collection_setting/index'
+const collectsetting = () => import('@/views/project_setting/collection_setting/index')
 
 /** 业务空间 */
-import spacelist from '@/views/business_space/business_list'
+const spacelist = () => import('@/views/business_space/business_list')
 
 /** 扫楼数据整理 */
-import buildAssets from '@/views/data_admin/buildAssets'
-import buildLog from '@/views/data_admin/buildLog'
-import buildUser from '@/views/data_admin/buildUser'
-import buildData from '@/views/data_admin/buildData'
-import buildGraphy from '@/views/data_admin/buildGraphy'
+const buildAssets = () => import('@/views/data_admin/buildAssets')
+const buildLog = () => import('@/views/data_admin/buildLog')
+const buildUser = () => import('@/views/data_admin/buildUser')
+const buildData = () => import('@/views/data_admin/buildData')
+const buildGraphy = () => import('@/views/data_admin/buildGraphy')
 
 /**市场及商务 */
 const OwnerManage = () => import('@/views/market/owner/manage')
 
 /**  台账管理 */
-import systemLedger from '@/views/ledger/system'
-import facilityLedger from '@/views/ledger/facility'
-import propertyLedger from '@/views/ledger/property'
+const systemLedger = () => import('@/views/ledger/system')
+const facilityLedger = () => import('@/views/ledger/facility')
+const propertyLedger = () => import('@/views/ledger/property')
 
 export default [
     { path: '/', name: '', component: LayoutMain, children: [{ path: '', name: 'blank', component: Dasboard }] },