feat(analytics): 添加访问统计功能

实现页面访问统计功能,包括:
1. 前端组件挂载时上报访问数据
2. 后端接口记录访问信息并存储
3. 管理后台新增访问统计视图
4. 相关API文档和设计说明更新
This commit is contained in:
anghunk
2026-01-21 21:56:57 +08:00
parent aabf370f65
commit d5a7a15344
12 changed files with 1241 additions and 201 deletions

View File

@@ -5,6 +5,7 @@ import CommentsView from '../views/CommentsView.vue';
import SettingsView from '../views/SettingsView.vue';
import DataView from '../views/DataView.vue';
import StatsView from '../views/StatsView.vue';
import AnalyticsVisitView from '../views/AnalyticsVisitView.vue';
const routes: RouteRecordRaw[] = [
{
@@ -30,6 +31,11 @@ const routes: RouteRecordRaw[] = [
name: 'stats',
component: StatsView
},
{
path: 'analytics',
name: 'analytics',
component: AnalyticsVisitView
},
{
path: 'settings',
name: 'settings',