feat: 1. 添加morgan这个web中间件去接收记录所有的http请求。

2. 更改打包配置文件,服务的启动由remix/server改成自定义server.js(Express服务器+morgan中间件:记录http日志)
This commit is contained in:
2025-12-09 21:04:37 +08:00
parent de923f6521
commit e82e61b589
7 changed files with 1360 additions and 53 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ export const FilePreview = forwardRef<FilePreviewHandle, FilePreviewProps>(funct
// 使用 highlightValue 作为高亮文本(用户点击评查点时传递的实际文本值)
// 不再从 charPositions 提取,因为 charPositions 是 PDF 特有的坐标信息
const highlightText = highlightValue;
console.log('docx跳转的目标页',targetPage)
// DOCX文件使用Collabora Online预览
// 如果是模板预览,使用只读模式;否则使用编辑模式
return (
+1 -1
View File
@@ -1728,7 +1728,7 @@ export function ReviewPointsList({
if (fieldData) {
// 调用回调函数,传递搜索文本(原文)、替换文本(AI建议)和页码
onAiSuggestionReplace(
key, // 搜索文本(使用 suggestions 的 key
fieldData.value || '', // 搜索文本(使用 suggestions 的 key对应的config中的key的value值
suggestionValue.suggested_value || '', // 替换文本(AI建议的 suggested_value
Number(fieldData.page) || 1 // 页码
);