Răsfoiți Sursa

chore: auto bump version and changelog [skip ci]

iwt 5 zile în urmă
părinte
comite
f9fde273d3

+ 9 - 3
cfc-frontend/pages/article-center/article-detail.vue

@@ -28,13 +28,16 @@
           <text class="detail-category">{{ article.categoryName || '' }}</text>
         </view>
         <view v-if="article.relatedDimensions" class="detail-dimensions">
-          <view v-for="dim in parseDimensions(article)" :key="dim.code" class="dim-bar-item">
+          <view v-for="dim in parseDimensions(article) :key="dim.code" class="dim-bar-item">
             <view class="dim-bar" :style="{ background: dim.color, width: dim.weight + '%' }"></view>
             <text class="dim-label">{{ dim.name }}</text>
           </view>
         </view>
+        <view class="detail-summary" v-if="article.summary">
+          <text class="detail-summary-text">{{ article.summary }}</text>
+        </view>
         <view class="divider"></view>
-        <view class="detail-body"><mp-html :content="article.content" :domain="config.API_BASE_URL" /></view>
+        <view class="detail-body"><mp-html :content="article.content" :domain="config.API_BASE_URL" :tag-style="contentTagStyle" /></view>
 
         <!-- 评论区(已屏蔽) -->
         <view style="height: 200rpx;"></view>
@@ -99,6 +102,7 @@ export default {
       currentChildId: null,
       showPoster: false, posterQrCode: '',
       posterDimension: '', posterSummary: '', posterInviteText: '',
+      contentTagStyle: { p: 'font-size:32rpx;color:#444;line-height:1.8;', div: 'font-size:32rpx;color:#444;line-height:1.8;', section: 'font-size:32rpx;color:#444;line-height:1.8;', li: 'font-size:32rpx;color:#444;line-height:1.8;', blockquote: 'font-size:32rpx;color:#444;line-height:1.8;' },
       // 答题
       showQuiz: false, quizQuestions: [], quizAnswers: [], showResult: false, quizResult: {},
       mascotList: [{ icon: '🐶', name: '浠宝' }, { icon: '🐼', name: '福宝' }],
@@ -330,8 +334,10 @@ export default {
 .dim-bar-item { flex: 1; }
 .dim-bar { height: 8rpx; border-radius: 4rpx; }
 .dim-label { font-size: 18rpx; color: #999; text-align: center; display: block; margin-top: 4rpx; }
+.detail-summary { padding: 20rpx 30rpx; }
+.detail-summary-text { font-size: 26rpx; color: #888; line-height: 1.7; display: block; border-left: 4rpx solid #F97316; padding-left: 20rpx; }
 .divider { height: 1rpx; background: #eee; margin: 24rpx 30rpx; }
-.detail-body { padding: 0 30rpx; font-size: 28rpx; color: #444; line-height: 1.8; }
+.detail-body { padding: 0 30rpx; font-size: 32rpx; color: #444; line-height: 1.8; }
 
 .detail-footer { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 20rpx 30rpx; display: flex; align-items: center; gap: 16rpx; box-shadow: 0 -2rpx 10rpx rgba(0,0,0,0.06); z-index: 10; }
 .share-btn { height: 72rpx; padding: 0 30rpx; background: linear-gradient(135deg, #F97316, #FB923C); border-radius: 36rpx; display: flex; align-items: center; justify-content: center; border: none; }

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-6a23891f211f4596c1c61cae072966ea3d52388a
+22bfdfb30562eb7892383c16fae03c97f1dd96fe

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "cfc-web",
-  "version": "1.0.1405",
+  "version": "1.0.1406",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "cfc-web",
-      "version": "1.0.1405",
+      "version": "1.0.1406",
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",

+ 1 - 1
cfc-web/package.json

@@ -1,6 +1,6 @@
 {
   "name": "cfc-web",
-  "version": "1.0.1406",
+  "version": "1.0.1407",
   "private": true,
   "scripts": {
     "dev": "vue-cli-service serve",

+ 15 - 0
cfc-web/public/CHANGELOG-v1.0.md

@@ -4,6 +4,21 @@
 
 ---
 
+## v1.0.1407 (2026-09-15)
+
+### Bug 修复
+- 修复 ChromaDB 数据膨胀导致的 gunicorn OOM 循环
+
+### 其他
+-   282 万条 embedding 到内存 (13GB) 引发 OOM
+- - retriever.initialize: 改为 upsert 语义(先删 type=article 旧索引再写入), 避免
+-   每次 worker 启动重复追加累积
+- - docker-compose: langgraph-svc 加 mem_limit 4g 硬限制, 防止异常膨胀吃满宿主机
+- - requirements_frozen: numpy 降级 1.26.4 (2.5.x 移除 np.complex_, tensorflow 不兼容)
+- 效果: embeddings 282万条(23.5GB) -> 2.6万条(286MB), worker 内存 13GB -> 1GB
+- 
+
+
 ## v1.0.1406 (2026-09-14)
 
 ### 重构

+ 16 - 1
cfc-web/public/CHANGELOG.md

@@ -1,6 +1,6 @@
 # 更新日志
 
-> 当前版本: v1.0.1406
+> 当前版本: v1.0.1407
 
 ## 历史版本
 
@@ -8,6 +8,21 @@
 
 ---
 
+## v1.0.1407 (2026-09-15)
+
+### Bug 修复
+- 修复 ChromaDB 数据膨胀导致的 gunicorn OOM 循环
+
+### 其他
+-   282 万条 embedding 到内存 (13GB) 引发 OOM
+- - retriever.initialize: 改为 upsert 语义(先删 type=article 旧索引再写入), 避免
+-   每次 worker 启动重复追加累积
+- - docker-compose: langgraph-svc 加 mem_limit 4g 硬限制, 防止异常膨胀吃满宿主机
+- - requirements_frozen: numpy 降级 1.26.4 (2.5.x 移除 np.complex_, tensorflow 不兼容)
+- 效果: embeddings 282万条(23.5GB) -> 2.6万条(286MB), worker 内存 13GB -> 1GB
+- 
+
+
 ## v1.0.1406 (2026-09-14)
 
 ### 重构