Initial import of weiyuan frontend
This commit is contained in:
@@ -0,0 +1,592 @@
|
||||
/*
|
||||
Copyright (C) 2025 QuantumNous
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, {
|
||||
useState,
|
||||
useEffect,
|
||||
Suspense,
|
||||
lazy,
|
||||
useContext,
|
||||
useMemo,
|
||||
} from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { initVChartSemiTheme } from '@visactor/vchart-semi-theme';
|
||||
import {
|
||||
Button,
|
||||
Spin,
|
||||
Radio,
|
||||
DatePicker,
|
||||
Collapsible,
|
||||
Tabs,
|
||||
TabPane,
|
||||
} from '@douyinfe/semi-ui';
|
||||
import { IconRefresh } from '@douyinfe/semi-icons';
|
||||
import {
|
||||
BarChart2,
|
||||
Users,
|
||||
TrendingUp,
|
||||
Server,
|
||||
Trophy,
|
||||
CreditCard,
|
||||
FileText,
|
||||
UserCheck,
|
||||
Wallet,
|
||||
ChevronDown,
|
||||
ShieldAlert,
|
||||
History,
|
||||
Upload,
|
||||
Building2,
|
||||
Activity,
|
||||
} from 'lucide-react';
|
||||
import useAnalyticsData from '../../hooks/analytics/useAnalyticsData';
|
||||
import useOrgConsumptionData from '../../hooks/analytics/useOrgConsumptionData';
|
||||
import useRiskControlData from '../../hooks/analytics/useRiskControlData';
|
||||
import OverviewCards from '../../components/analytics/OverviewCards';
|
||||
import TrendCharts from '../../components/analytics/TrendCharts';
|
||||
import ChannelConsumption from '../../components/analytics/ChannelConsumption';
|
||||
import UserRanking from '../../components/analytics/UserRanking';
|
||||
import TopupChannelChart from '../../components/analytics/TopupChannelChart';
|
||||
import DailyStatsTable from '../../components/analytics/DailyStatsTable';
|
||||
import UserSurveyStats from '../../components/analytics/UserSurveyStats';
|
||||
import UserTopupRanking from '../../components/analytics/UserTopupRanking';
|
||||
import HighFreqLowCostUsers from '../../components/analytics/HighFreqLowCostUsers';
|
||||
import RiskControlRulesModal from '../../components/analytics/RiskControlRulesModal';
|
||||
import RiskControlBanLogs from '../../components/analytics/RiskControlBanLogs';
|
||||
import OrgReportPanel from '../../components/analytics/orgReport';
|
||||
import { StatusContext } from '../../context/Status';
|
||||
import { normalizeSidebarModulesAdmin } from '../../constants/sidebarModules';
|
||||
|
||||
// audit 面板单独切 chunk:仅用户切到审计 Tab 时按需加载
|
||||
const ExperienceCenterAuditPanel = lazy(
|
||||
() => import('../ExperienceCenterAudit'),
|
||||
);
|
||||
|
||||
// 调用质量看板单独切 chunk(含多张图表),仅切到该 Tab 时加载
|
||||
const QualityDashboard = lazy(
|
||||
() => import('../../components/quality/QualityDashboard'),
|
||||
);
|
||||
|
||||
// 内嵌的 chunk 加载占位:不能用全屏的 <Loading />,否则会撑出 100vh 的开机闪屏
|
||||
const TabChunkFallback = () => (
|
||||
<div className='flex justify-center items-center py-16'>
|
||||
<Spin size='large' />
|
||||
</div>
|
||||
);
|
||||
|
||||
// 可折叠区块头部
|
||||
const CollapsibleHeader = ({ icon, title, isOpen, onToggle, t, extra }) => (
|
||||
<div
|
||||
className='flex items-center justify-between cursor-pointer select-none px-5 py-4 bg-white dark:bg-gray-800 rounded-xl shadow-sm hover:shadow-md transition-all border border-gray-100 dark:border-gray-700'
|
||||
onClick={onToggle}
|
||||
>
|
||||
<div className='flex items-center gap-2'>
|
||||
<span className='text-brand'>{icon}</span>
|
||||
<span className='font-semibold text-gray-800 dark:text-gray-100'>
|
||||
{title}
|
||||
</span>
|
||||
{extra}
|
||||
</div>
|
||||
<ChevronDown
|
||||
className={`w-5 h-5 text-gray-400 transition-transform duration-300 ${isOpen ? 'rotate-180' : ''}`}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
// 从 URL ?tab= 派生 activeTab,未知值落回 operations
|
||||
const readTabFromURL = () => {
|
||||
try {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
const tab = params.get('tab');
|
||||
if (tab === 'risk' || tab === 'audit' || tab === 'org' || tab === 'quality')
|
||||
return tab;
|
||||
return 'operations';
|
||||
} catch (_e) {
|
||||
return 'operations';
|
||||
}
|
||||
};
|
||||
|
||||
const Analytics = () => {
|
||||
const { t } = useTranslation();
|
||||
const [statusState] = useContext(StatusContext);
|
||||
const analyticsConfig = useMemo(
|
||||
() =>
|
||||
normalizeSidebarModulesAdmin(statusState?.status?.SidebarModulesAdmin)
|
||||
.analytics,
|
||||
[statusState?.status?.SidebarModulesAdmin],
|
||||
);
|
||||
const isAnalyticsTabVisible = (key) =>
|
||||
analyticsConfig?.enabled !== false && analyticsConfig?.[key] !== false;
|
||||
const firstVisibleTab = [
|
||||
'operations',
|
||||
'quality',
|
||||
'risk',
|
||||
'org',
|
||||
'audit',
|
||||
].find(isAnalyticsTabVisible);
|
||||
|
||||
// 初始化 VChart Semi 主题(深色模式适配)
|
||||
useEffect(() => {
|
||||
initVChartSemiTheme({
|
||||
isWatchingThemeSwitch: true,
|
||||
});
|
||||
}, []);
|
||||
|
||||
const [channelOpen, setChannelOpen] = useState(false);
|
||||
const [topupRankOpen, setTopupRankOpen] = useState(false);
|
||||
const [dailyStatsOpen, setDailyStatsOpen] = useState(false);
|
||||
const [banLogsOpen, setBanLogsOpen] = useState(true);
|
||||
const [activeTab, setActiveTab] = useState(readTabFromURL);
|
||||
|
||||
useEffect(() => {
|
||||
if (!firstVisibleTab) return;
|
||||
if (!isAnalyticsTabVisible(activeTab)) {
|
||||
setActiveTab(firstVisibleTab);
|
||||
const url = new URL(window.location.href);
|
||||
if (firstVisibleTab === 'operations') url.searchParams.delete('tab');
|
||||
else url.searchParams.set('tab', firstVisibleTab);
|
||||
window.history.replaceState(null, '', url.toString());
|
||||
}
|
||||
}, [activeTab, firstVisibleTab, analyticsConfig]);
|
||||
|
||||
// 浏览器前进/后退切到不同 ?tab= 时同步 UI(我们用 replaceState 改 URL,所以正常切换不会
|
||||
// 产生 history 条目;这里主要兜底浏览器返回到带 ?tab= 的旧条目、或扩展直接改 URL 的情况)
|
||||
useEffect(() => {
|
||||
const onPopState = () => setActiveTab(readTabFromURL());
|
||||
window.addEventListener('popstate', onPopState);
|
||||
return () => window.removeEventListener('popstate', onPopState);
|
||||
}, []);
|
||||
const [riskRuleModalVisible, setRiskRuleModalVisible] = useState(false);
|
||||
const {
|
||||
loading,
|
||||
overview,
|
||||
userTrend,
|
||||
financeTrend,
|
||||
channelConsumption,
|
||||
userRanking,
|
||||
topupChannel,
|
||||
dailyStats,
|
||||
userTopupRanking,
|
||||
period,
|
||||
dateRange,
|
||||
setPeriod,
|
||||
setDateRange,
|
||||
refreshAll,
|
||||
} = useAnalyticsData(
|
||||
activeTab === 'operations' && isAnalyticsTabVisible('operations'),
|
||||
);
|
||||
|
||||
// 懒加载:仅当用户切到风控 Tab 时才发起风控 API 请求
|
||||
const risk = useRiskControlData(
|
||||
activeTab === 'risk' && isAnalyticsTabVisible('risk'),
|
||||
);
|
||||
|
||||
// 懒加载:仅当用户切到「个人/企业消耗」Tab 时才发起请求
|
||||
const org = useOrgConsumptionData(
|
||||
activeTab === 'org' && isAnalyticsTabVisible('org'),
|
||||
);
|
||||
|
||||
// 运营看板与个人/企业消耗看板共用顶部时间筛选器,按当前 Tab 取对应控制器
|
||||
const isOperationsTab =
|
||||
activeTab === 'operations' && isAnalyticsTabVisible('operations');
|
||||
const isOrgTab = activeTab === 'org' && isAnalyticsTabVisible('org');
|
||||
const showPeriodControls = isOperationsTab || isOrgTab;
|
||||
const curPeriod = isOrgTab ? org.period : period;
|
||||
const curDateRange = isOrgTab ? org.dateRange : dateRange;
|
||||
const curSetPeriod = isOrgTab ? org.setPeriod : setPeriod;
|
||||
const curSetDateRange = isOrgTab ? org.setDateRange : setDateRange;
|
||||
const curRefresh = isOrgTab ? org.refreshAll : refreshAll;
|
||||
const curLoading = isOrgTab ? org.loading : loading;
|
||||
|
||||
const handleTabChange = (key) => {
|
||||
setActiveTab(key);
|
||||
const url = new URL(window.location.href);
|
||||
if (key === 'operations') url.searchParams.delete('tab');
|
||||
else url.searchParams.set('tab', key);
|
||||
// 调用质量的筛选条件(q_ 前缀)只属于该 Tab,切走时清理,避免分享链接带上无关参数
|
||||
if (key !== 'quality') {
|
||||
Array.from(url.searchParams.keys())
|
||||
.filter((k) => k.startsWith('q_'))
|
||||
.forEach((k) => url.searchParams.delete(k));
|
||||
}
|
||||
window.history.replaceState(null, '', url.toString());
|
||||
};
|
||||
|
||||
const periodOptions = [
|
||||
{ value: 'today', label: t('今日') },
|
||||
{ value: 'week', label: t('本周') },
|
||||
{ value: 'month', label: t('本月') },
|
||||
{ value: 'quarter', label: t('季度') },
|
||||
{ value: 'custom', label: t('自定义') },
|
||||
];
|
||||
|
||||
return (
|
||||
<div className='min-h-screen mt-[60px]'>
|
||||
<Spin spinning={curLoading && showPeriodControls}>
|
||||
<div className='px-4 py-6 max-w-[1600px] mx-auto'>
|
||||
{/* Header */}
|
||||
<div className='mb-6 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4'>
|
||||
<div className='flex items-center gap-3'>
|
||||
<div className='p-2.5 bg-gradient-to-br from-brand-from to-brand-to rounded-xl shadow-lg'>
|
||||
<BarChart2 className='w-6 h-6 text-white' />
|
||||
</div>
|
||||
<div>
|
||||
<h1 className='text-2xl font-bold text-gray-800 dark:text-gray-100'>
|
||||
{t('运营数据看板')}
|
||||
</h1>
|
||||
<p className='text-sm text-gray-500 dark:text-gray-400 mt-0.5'>
|
||||
{t('实时监控平台运营状况')}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className='flex flex-wrap items-center gap-3'>
|
||||
{showPeriodControls && (
|
||||
<>
|
||||
<Radio.Group
|
||||
type='button'
|
||||
value={curPeriod}
|
||||
onChange={(e) => curSetPeriod(e.target.value)}
|
||||
buttonSize='middle'
|
||||
>
|
||||
{periodOptions.map((opt) => (
|
||||
<Radio key={opt.value} value={opt.value}>
|
||||
{opt.label}
|
||||
</Radio>
|
||||
))}
|
||||
</Radio.Group>
|
||||
{curPeriod === 'custom' && (
|
||||
<DatePicker
|
||||
type='dateRange'
|
||||
value={curDateRange}
|
||||
onChange={curSetDateRange}
|
||||
placeholder={[t('开始日期'), t('结束日期')]}
|
||||
format='yyyy-MM-dd'
|
||||
style={{ width: 260 }}
|
||||
presets={[
|
||||
{
|
||||
text: t('最近7天'),
|
||||
start: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
||||
end: new Date(),
|
||||
},
|
||||
{
|
||||
text: t('最近30天'),
|
||||
start: new Date(
|
||||
Date.now() - 30 * 24 * 60 * 60 * 1000,
|
||||
),
|
||||
end: new Date(),
|
||||
},
|
||||
{
|
||||
text: t('最近90天'),
|
||||
start: new Date(
|
||||
Date.now() - 90 * 24 * 60 * 60 * 1000,
|
||||
),
|
||||
end: new Date(),
|
||||
},
|
||||
]}
|
||||
/>
|
||||
)}
|
||||
<Button
|
||||
icon={<IconRefresh />}
|
||||
onClick={() => curRefresh(curPeriod, curDateRange, true)}
|
||||
loading={curLoading}
|
||||
>
|
||||
{t('刷新')}
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!firstVisibleTab && (
|
||||
<div className='rounded-2xl border border-dashed border-gray-200 dark:border-gray-700 bg-white/70 dark:bg-gray-800/60 p-10 text-center shadow-sm'>
|
||||
<div className='mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-2xl bg-indigo-50 text-indigo-500 dark:bg-indigo-900/30 dark:text-indigo-300'>
|
||||
<BarChart2 className='h-6 w-6' />
|
||||
</div>
|
||||
<div className='text-base font-semibold text-gray-800 dark:text-gray-100'>
|
||||
{t('暂无可用的运营看板模块')}
|
||||
</div>
|
||||
<div className='mt-2 text-sm text-gray-500 dark:text-gray-400'>
|
||||
{t('请在系统设置中启用至少一个运营看板 Tab')}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{firstVisibleTab && (
|
||||
<Tabs
|
||||
type='line'
|
||||
activeKey={activeTab}
|
||||
onChange={handleTabChange}
|
||||
className='mb-4'
|
||||
>
|
||||
{isAnalyticsTabVisible('operations') && (
|
||||
<TabPane
|
||||
tab={
|
||||
<span className='flex items-center gap-2'>
|
||||
<BarChart2 className='w-4 h-4' />
|
||||
{t('运营看板')}
|
||||
</span>
|
||||
}
|
||||
itemKey='operations'
|
||||
/>
|
||||
)}
|
||||
{isAnalyticsTabVisible('quality') && (
|
||||
<TabPane
|
||||
tab={
|
||||
<span className='flex items-center gap-2'>
|
||||
<Activity className='w-4 h-4' />
|
||||
{t('调用质量')}
|
||||
</span>
|
||||
}
|
||||
itemKey='quality'
|
||||
/>
|
||||
)}
|
||||
{isAnalyticsTabVisible('risk') && (
|
||||
<TabPane
|
||||
tab={
|
||||
<span className='flex items-center gap-2'>
|
||||
<ShieldAlert className='w-4 h-4' />
|
||||
{t('风控看板')}
|
||||
</span>
|
||||
}
|
||||
itemKey='risk'
|
||||
/>
|
||||
)}
|
||||
{isAnalyticsTabVisible('org') && (
|
||||
<TabPane
|
||||
tab={
|
||||
<span className='flex items-center gap-2'>
|
||||
<Building2 className='w-4 h-4' />
|
||||
{t('个人/企业消耗')}
|
||||
</span>
|
||||
}
|
||||
itemKey='org'
|
||||
/>
|
||||
)}
|
||||
{isAnalyticsTabVisible('audit') && (
|
||||
<TabPane
|
||||
tab={
|
||||
<span className='flex items-center gap-2'>
|
||||
<Upload className='w-4 h-4' />
|
||||
{t('体验中心上传审计')}
|
||||
</span>
|
||||
}
|
||||
itemKey='audit'
|
||||
/>
|
||||
)}
|
||||
</Tabs>
|
||||
)}
|
||||
|
||||
{activeTab === 'operations' &&
|
||||
isAnalyticsTabVisible('operations') && (
|
||||
<>
|
||||
{/* Overview Cards */}
|
||||
<OverviewCards overview={overview} t={t} />
|
||||
|
||||
{/* Trend Charts */}
|
||||
<div className='grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6'>
|
||||
<TrendCharts
|
||||
title={t('用户趋势')}
|
||||
icon={<Users className='w-5 h-5' />}
|
||||
data={userTrend}
|
||||
type='user'
|
||||
t={t}
|
||||
/>
|
||||
<TrendCharts
|
||||
title={t('收支趋势')}
|
||||
icon={<TrendingUp className='w-5 h-5' />}
|
||||
data={financeTrend}
|
||||
type='finance'
|
||||
t={t}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Distribution Charts */}
|
||||
<div className='grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6'>
|
||||
<TopupChannelChart
|
||||
data={topupChannel}
|
||||
title={t('充值渠道分布')}
|
||||
icon={<CreditCard className='w-5 h-5' />}
|
||||
t={t}
|
||||
/>
|
||||
<UserRanking
|
||||
data={userRanking}
|
||||
title={t('用户消耗 TOP100')}
|
||||
icon={<Trophy className='w-5 h-5' />}
|
||||
t={t}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Channel Consumption Ranking */}
|
||||
<div className='mb-6'>
|
||||
<CollapsibleHeader
|
||||
icon={<Server className='w-5 h-5' />}
|
||||
title={t('渠道消耗排行')}
|
||||
isOpen={channelOpen}
|
||||
onToggle={() => setChannelOpen(!channelOpen)}
|
||||
t={t}
|
||||
/>
|
||||
<Collapsible isOpen={channelOpen} keepDOM>
|
||||
<div className='mt-2'>
|
||||
<ChannelConsumption
|
||||
data={channelConsumption}
|
||||
title={t('渠道消耗排行')}
|
||||
icon={<Server className='w-5 h-5' />}
|
||||
t={t}
|
||||
/>
|
||||
</div>
|
||||
</Collapsible>
|
||||
</div>
|
||||
|
||||
{/* User Survey Stats */}
|
||||
<div className='mb-6'>
|
||||
<UserSurveyStats
|
||||
title={t('用户身份问卷统计')}
|
||||
icon={<UserCheck className='w-5 h-5' />}
|
||||
t={t}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* User Topup Ranking */}
|
||||
<div className='mb-6'>
|
||||
<CollapsibleHeader
|
||||
icon={<Wallet className='w-5 h-5' />}
|
||||
title={t('用户充值排行')}
|
||||
isOpen={topupRankOpen}
|
||||
onToggle={() => setTopupRankOpen(!topupRankOpen)}
|
||||
t={t}
|
||||
/>
|
||||
<Collapsible isOpen={topupRankOpen} keepDOM>
|
||||
<div className='mt-2'>
|
||||
<UserTopupRanking
|
||||
data={userTopupRanking}
|
||||
title={t('用户充值排行')}
|
||||
icon={<Wallet className='w-5 h-5' />}
|
||||
t={t}
|
||||
/>
|
||||
</div>
|
||||
</Collapsible>
|
||||
</div>
|
||||
|
||||
{/* Daily Stats Table */}
|
||||
<div className='mb-6'>
|
||||
<CollapsibleHeader
|
||||
icon={<FileText className='w-5 h-5' />}
|
||||
title={t('每日统计明细')}
|
||||
isOpen={dailyStatsOpen}
|
||||
onToggle={() => setDailyStatsOpen(!dailyStatsOpen)}
|
||||
t={t}
|
||||
/>
|
||||
<Collapsible isOpen={dailyStatsOpen} keepDOM>
|
||||
<div className='mt-2'>
|
||||
<DailyStatsTable
|
||||
data={dailyStats}
|
||||
title={t('每日统计明细')}
|
||||
icon={<FileText className='w-5 h-5' />}
|
||||
t={t}
|
||||
/>
|
||||
</div>
|
||||
</Collapsible>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
||||
{activeTab === 'org' && isAnalyticsTabVisible('org') && (
|
||||
<OrgReportPanel
|
||||
report={org.report}
|
||||
loading={org.loading}
|
||||
error={org.error}
|
||||
onRetry={() => org.refreshAll(org.period, org.dateRange)}
|
||||
t={t}
|
||||
/>
|
||||
)}
|
||||
|
||||
{activeTab === 'risk' && isAnalyticsTabVisible('risk') && (
|
||||
<>
|
||||
<HighFreqLowCostUsers
|
||||
loading={risk.loading}
|
||||
items={risk.items}
|
||||
windowRange={risk.windowRange}
|
||||
filters={risk.filters}
|
||||
setFilters={risk.setFilters}
|
||||
fetchSuspects={risk.fetchSuspects}
|
||||
rules={risk.rules}
|
||||
unbanUser={risk.unbanUser}
|
||||
onOpenRuleModal={() => setRiskRuleModalVisible(true)}
|
||||
t={t}
|
||||
/>
|
||||
|
||||
{/* 自动封号历史 */}
|
||||
<div className='mt-6 mb-6'>
|
||||
<CollapsibleHeader
|
||||
icon={<History className='w-5 h-5' />}
|
||||
title={t('自动封号历史')}
|
||||
isOpen={banLogsOpen}
|
||||
onToggle={() => setBanLogsOpen(!banLogsOpen)}
|
||||
t={t}
|
||||
extra={
|
||||
<span className='text-xs text-gray-400 ml-2'>
|
||||
{t('被自动封号的用户列表 + 解封操作入口')}
|
||||
</span>
|
||||
}
|
||||
/>
|
||||
<Collapsible isOpen={banLogsOpen} keepDOM>
|
||||
<div className='mt-2 px-5 py-4 bg-white dark:bg-gray-800 rounded-xl shadow-sm border border-gray-100 dark:border-gray-700'>
|
||||
<RiskControlBanLogs
|
||||
loading={risk.banLogLoading}
|
||||
banLogs={risk.banLogs}
|
||||
banLogTotal={risk.banLogTotal}
|
||||
banLogStatus={risk.banLogStatus}
|
||||
setBanLogStatus={risk.setBanLogStatus}
|
||||
banLogPage={risk.banLogPage}
|
||||
fetchBanLogs={risk.fetchBanLogs}
|
||||
unbanUser={risk.unbanUser}
|
||||
t={t}
|
||||
/>
|
||||
</div>
|
||||
</Collapsible>
|
||||
</div>
|
||||
|
||||
<RiskControlRulesModal
|
||||
visible={riskRuleModalVisible}
|
||||
onClose={() => setRiskRuleModalVisible(false)}
|
||||
rules={risk.rules}
|
||||
saveRule={risk.saveRule}
|
||||
triggerScanNow={risk.triggerScanNow}
|
||||
t={t}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
{activeTab === 'quality' && isAnalyticsTabVisible('quality') && (
|
||||
<Suspense fallback={<TabChunkFallback />}>
|
||||
<QualityDashboard scope='platform' />
|
||||
</Suspense>
|
||||
)}
|
||||
|
||||
{activeTab === 'audit' && isAnalyticsTabVisible('audit') && (
|
||||
<Suspense fallback={<TabChunkFallback />}>
|
||||
<ExperienceCenterAuditPanel />
|
||||
</Suspense>
|
||||
)}
|
||||
</div>
|
||||
</Spin>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Analytics;
|
||||
Reference in New Issue
Block a user