Ver código fonte

fix: 修复reviewRange高亮问题

- 更新project.reviewRange的value_text为原文完整文本(195字符)
- 更新CertificateGetAt为2019年12月9日(修正错误值)
- 移除text.length>100的长文本启发式判断,仅依赖elementType
- 避免inline长文本值(如reviewRange)被错误归类为paragraph级别高亮
何文松 1 semana atrás
pai
commit
dac1eec95c
2 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      frontend/vue-demo/src/views/Editor.vue
  2. BIN
      mock_docs/.~模板.docx

+ 1 - 1
frontend/vue-demo/src/views/Editor.vue

@@ -768,7 +768,7 @@ function buildElementValueMap() {
       }
       if (isStatic) {
         staticTexts.push(entry)
-      } else if (elemType === 'paragraph' || elemType === 'table' || text.includes('\n') || text.length > 100) {
+      } else if (elemType === 'paragraph' || elemType === 'table') {
         longTexts.push(entry)
       } else {
         shortTexts.push(entry)

BIN
mock_docs/.~模板.docx