rm parameters
This commit is contained in:
@@ -46,11 +46,11 @@ const PathAnalytics: React.FC<PathAnalyticsProps> = ({ startTime, endTime, linkI
|
|||||||
let totalClicks = 0;
|
let totalClicks = 0;
|
||||||
|
|
||||||
rawData.forEach((item: PathData) => {
|
rawData.forEach((item: PathData) => {
|
||||||
const urlPath = item.path;
|
const urlPath = item.path.split('?')[0];
|
||||||
totalClicks += item.count;
|
totalClicks += item.count;
|
||||||
|
|
||||||
// 解析路径,检查是否有子路径
|
// 解析路径,检查是否有子路径
|
||||||
const pathParts = urlPath.split('?')[0].split('/').filter(Boolean);
|
const pathParts = urlPath.split('/').filter(Boolean);
|
||||||
|
|
||||||
// 基础路径(例如/5seaii)或者带有查询参数但没有子路径的路径视为同一个路径
|
// 基础路径(例如/5seaii)或者带有查询参数但没有子路径的路径视为同一个路径
|
||||||
// 子路径(例如/5seaii/bbbbb)单独统计
|
// 子路径(例如/5seaii/bbbbb)单独统计
|
||||||
|
|||||||
Reference in New Issue
Block a user