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'));
// 活动中心
const ActiveList = asyncComponent(() =>
import('pages/ActivityCenter/ActiveList')
// APP 管理
const USERLIST = asyncComponent(() => import('pages/AppManage/UserList'));
const ApkSetting = asyncComponent(() => import('pages/AppManage/ApkSetting'));
const LicenseList = asyncComponent(() => import('pages/AppManage/LicenseList'));
const QaList = asyncComponent(() => import('pages/AppManage/QaList'));
// 安全中心
const REPORT = asyncComponent(() => import('pages/Safety/Report'));
const BroadCast = asyncComponent(() => import('pages/Safety/BroadCast'));
// 电影频道
const MovieList = asyncComponent(() => import('pages/Movie/MovieList'));
// 后台管理
const UserSetting = asyncComponent(() =>
import('pages/AdminSetting/UserSetting')
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: ActiveList
key: 'g3',
title: {
icon: 'scan',
text: '电影专栏'
exact: true,
path: '/active',
children: [
key: '22',
text: '电影大全',
path: '/movie/list',
component: MovieList
key: 'g4',
title: {
icon: 'apple-o',
text: 'APP管理'
exact: true,
path: '/appmanage',
children: [
key: '29',
text: 'Apk设置',
path: '/appmanage/apksetting',
component: ApkSetting
key: '30',
text: '用户列表',
path: '/appmanage/userlist',
component: USERLIST
key: '31',
text: '用户协议',
path: '/platform/license',
component: LicenseList
key: '32',
text: '帮助中心',
path: '/platform/help',
component: QaList
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: BroadCast
key: 'g6',
title: {
icon: 'user',
text: '后台设置'
exact: true,
path: '/user',
children: [
key: '43',
text: '个人设置',
path: '/admin/setting',
component: UserSetting
export const groupKey = RouterTree.map(item => item.key);
export default RouterTree;