import React from 'react';
import asyncComponent from 'components/asyncComponent/asyncComponent';
// 数据分析
const Monitor = asyncComponent(() => import('pages/DashBoard/Monitor'));
const Analyze = asyncComponent(() => import('pages/DashBoard/Analyze'));
// 音频管理
const VoiceList = asyncComponent(() => import('pages/AudioManage/VoiceList'));
const CallVoice = asyncComponent(() => import('pages/AudioManage/CallVoice'));
const PrivateChat = asyncComponent(() =>
import('pages/AudioManage/PrivateChat')
const Topic = asyncComponent(() => import('pages/AudioManage/Topic'));
// APP 管理
const USERLIST = asyncComponent(() => import('pages/AppManage/UserList'));
// 安全中心
const REPORT = asyncComponent(() => import('pages/Safety/Report'));
const RouterTree = [
key: 'g0',
title: {
icon: 'dashboard',
text: '数据分析'
exact: true,
path: '/dashboard',
children: [
key: '1',
text: '数据监控',
path: '/dashboard/monitor',
component: Monitor
key: '2',
text: '数据分析',
path: '/dashboard/analyze',
component: Analyze
key: 'g1',
title: {
icon: 'play-circle',
text: '音频管理'
exact: true,
path: '/voice',
children: [
key: '8',
text: '声兮列表',
path: '/voice/sxlist',
component: VoiceList
key: '9',
text: '回声列表',
path: '/voice/calllist',
component: CallVoice
key: '10',
text: '私聊列表',
path: '/voice/privatechat',
component: PrivateChat
key: '11',
text: '热门话题',
path: '/voice/topcis',
component: Topic
key: 'g2',
title: {
icon: 'schedule',
text: '活动中心'
exact: true,
path: '/active',
children: [
key: '17',
text: '活动列表',
path: '/active/list',
component: Analyze
key: '18',
text: '新建活动',
path: '/active/add',
component: Analyze
key: 'g3',
title: {
icon: 'scan',
text: '电影专栏'
exact: true,
path: '/active',
children: [
key: '22',
text: '电影大全',
path: '/active/list',
component: Analyze
key: 'g4',
title: {
icon: 'apple-o',
text: 'APP管理'
exact: true,
path: '/appmanage',
children: [
key: '29',
text: '移动交互',
path: '/appmanage/interaction',
component: Analyze
key: '30',
text: '用户列表',
path: '/appmanage/userlist',
component: USERLIST
key: '31',
text: '用户协议',
path: '/platform/license',
component: Analyze
key: '32',
text: '帮助中心',
path: '/platform/help',
component: Analyze
key: 'g5',
title: {
icon: 'safety',
text: '安全中心'
exact: true,
path: '/safety',
children: [
key: '36',
text: '举报处理',
path: '/safety/report',
component: REPORT
key: '37',
text: '广播中心',
path: '/safety/broadcast',
component: Analyze
key: 'g6',
title: {
icon: 'user',
text: '系统设置'
exact: true,
path: '/user',
children: [
key: '43',
text: '个人设置',
path: '/user/setting',
component: Analyze
key: '44',
text: '用户列表',
path: '/user/list',
component: Analyze
export const groupKey = RouterTree.map(item => item.key);
export default RouterTree;