Przeglądaj źródła

fix: LangGraphAdmin.vue 修复 ES6 spread 语法兼容 webpack4

iwt 2 miesięcy temu
rodzic
commit
8117986d6b

+ 2 - 2
cfc-backend/src/test/java/com/etotem/cfc/controller/HealthDimensionControllerTest.java

@@ -40,7 +40,7 @@ public class HealthDimensionControllerTest {
 
         when(dimensionScoreService.getHealthDimension(10L)).thenReturn(vo);
 
-        Result<HealthDimensionVO> result = controller.overview(params, 1L);
+        Result<HealthDimensionVO> result = controller.overview(params, 1L, 1L);
 
         assertEquals(200, result.getCode());
         assertNotNull(result.getData());
@@ -53,7 +53,7 @@ public class HealthDimensionControllerTest {
     void overview_missingMemberId() {
         Map<String, Object> params = new HashMap<>();
 
-        Result<HealthDimensionVO> result = controller.overview(params, 1L);
+        Result<HealthDimensionVO> result = controller.overview(params, 1L, 1L);
 
         assertEquals(500, result.getCode());
         assertEquals("memberId不能为空", result.getMessage());

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-0e2dbacb9248eb12e49bf873432cbb39ce6f6666
+189b7f097c588eb3120fbb5cac101c02805ebfc5

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

@@ -1,12 +1,12 @@
 {
   "name": "cfc-web",
-  "version": "1.0.950",
+  "version": "1.0.951",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "cfc-web",
-      "version": "1.0.950",
+      "version": "1.0.951",
       "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.950",
+  "version": "1.0.952",
   "private": true,
   "scripts": {
     "dev": "vue-cli-service serve",

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

@@ -4,6 +4,18 @@
 
 ---
 
+## v1.0.952 (2026-08-10)
+
+### Bug 修复
+- 报告列表接口不强制 memberId——未传时回退到家庭报告列表
+
+
+## v1.0.951 (2026-08-10)
+
+### Bug 修复
+- 修复测试编译错误——适配 controller 方法签名变更(增加 @RequestAttribute 参数)
+
+
 ## v1.0.950 (2026-08-10)
 
 ### Bug 修复

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

@@ -1,6 +1,6 @@
 # 更新日志
 
-> 当前版本: v1.0.950
+> 当前版本: v1.0.952
 
 ## 历史版本
 
@@ -8,6 +8,18 @@
 
 ---
 
+## v1.0.952 (2026-08-10)
+
+### Bug 修复
+- 报告列表接口不强制 memberId——未传时回退到家庭报告列表
+
+
+## v1.0.951 (2026-08-10)
+
+### Bug 修复
+- 修复测试编译错误——适配 controller 方法签名变更(增加 @RequestAttribute 参数)
+
+
 ## v1.0.950 (2026-08-10)
 
 ### Bug 修复

+ 9 - 3
cfc-web/src/views/admin/LangGraphAdmin.vue

@@ -165,9 +165,15 @@
 <script>
 const BASE = 'https://ai.etotem.com.cn'
 
-function fetchJSON(url, options = {}) {
-  return fetch(url, { ...options, headers: { 'Content-Type': 'application/json', ...options.headers } })
-    .then(function(res) { if (!res.ok) throw new Error('HTTP ' + res.status) return res.json() })
+function fetchJSON(url, options) {
+  options = options || {}
+  var headers = options.headers || {}
+  headers['Content-Type'] = 'application/json'
+  return fetch(url, Object.assign({}, options, { headers: headers }))
+    .then(function(res) {
+      if (!res.ok) throw new Error('HTTP ' + res.status)
+      return res.json()
+    })
 }
 
 export default {