diff --git a/web/.gitignore b/web/.gitignore index a547bf3..6097591 100644 --- a/web/.gitignore +++ b/web/.gitignore @@ -9,6 +9,7 @@ lerna-debug.log* node_modules dist +dist.tar.gz dist-ssr *.local diff --git a/web/dist.tar.gz b/web/dist.tar.gz deleted file mode 100644 index 81184a9..0000000 Binary files a/web/dist.tar.gz and /dev/null differ diff --git a/变更记录.md b/变更记录.md index 98896c1..c576112 100644 --- a/变更记录.md +++ b/变更记录.md @@ -17,7 +17,7 @@ - 本地:`npm run lint`(通过)、`npm run build`(通过,新 bundle `index-CSVEb7gG.js`)。 - 部署:备份 `/home/pan/backups/web-20260812-1605/`(旧 dist、server.cjs、web.log),上传新产物并重启 node。 -- 验证:`http://localhost:5174/` 200;CSP 头含 S3 源;新 bundle 200;`/api/v1/health` 200;DB 白僵病 `image_url` 已补绑(`UPDATE 1`),图片匿名 GET 200。 +- 验证:`http://localhost:5174/` 200;CSP 头含 S3 源;新 bundle 200;`/api/v1/health` 200;DB 白僵病 `image_url` 已补绑(`UPDATE 1`),图片匿名 GET 200;admin 登录 API 冒烟返回白僵病 `imageUrl` 已绑定。 ### 回滚点 diff --git a/开发交接记录.md b/开发交接记录.md index 1f008e9..3bf9a5a 100644 --- a/开发交接记录.md +++ b/开发交接记录.md @@ -33,6 +33,7 @@ - 机制红绿验证:用 rc-field-form 验证 `validateFields()` 会丢弃未注册的 `imageUrl`,注册/合并后可携带。 - 部署验证:`http://localhost:5174/` 200;CSP 头含 `http://100.83.103.1:7480`;新 bundle 200;`/api/v1/health` 200;bundle 中可见 `name:"imageUrl", hidden:!0`。 - 数据验证:`UPDATE 1`;查询确认白僵病 `image_url` 已绑定;图片匿名 GET 200(image/jpeg)。 +- API 冒烟:admin 登录成功,`GET /api/v1/knowledge/diseases` 返回白僵病 `imageUrl` 已绑定(密码不写入文档)。 ### 回滚点 diff --git a/故障排查处理记录.md b/故障排查处理记录.md index 2497291..234faac 100644 --- a/故障排查处理记录.md +++ b/故障排查处理记录.md @@ -1075,6 +1075,6 @@ APP 使用 `react-native-vector-icons` 的 `MaterialCommunityIcons` 字体渲染 **注意事项**: - `/home/pan/silk` 不是 git 仓库,无法打 tag 回滚,只能依赖文件备份(本次已备份) -- 部署指南中的 `admin/admin123` 已无法登录(401 用户名或密码错误),本次 API 冒烟改用 DB 直接验证;如需 API 级冒烟请先确认当前 admin 密码 +- 部署指南中的 `admin/admin123` 已失效;已用当前 admin 账号完成 API 级冒烟(登录成功 → `GET /api/v1/knowledge/diseases` 返回白僵病 `imageUrl` 已绑定),密码本身不写入文档 - 已知边界:编辑页若点「移除」图片再保存,`imageUrl` 会以 `undefined` 提交(键被省略),不会清空库里已有图片;如需「移除即清空」后续应显式传 `null` - CSP 当前放行的是开发服务器 IP;生产切云 OSS/COS 时需把 OSS/CDN 域名加入 `img-src`,或改为同源代理