feat: 请求日志 + 前端埋点系统

后端:
- 新增 logger 中间件,记录所有请求到 logs/ 目录
- 新增 /api/track 接口接收前端埋点数据

前端:
- 新增 tracker 工具,支持页面访问/操作/错误埋点
- request.ts 添加 API 错误自动埋点
- App.vue 初始化全局错误追踪

文档:
- CLAUDE.md 更新项目结构
- DEV.md 添加埋点和日志说明
This commit is contained in:
2026-06-08 14:28:11 +08:00
parent 2f122d0a96
commit 0de4c9832c
9 changed files with 290 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ export const useUserStore = defineStore('user', () => {
})
const slogan = computed(() => {
return userInfo.value?.slogan || '记账小能手'
return userInfo.value?.slogan
})
const avatarUrl = computed(() => {