From bf1e9fa89a20e2e18a0ee759a15c3ec05bbf0a4f Mon Sep 17 00:00:00 2001 From: 2910410219 <2910410219@qq.com> Date: Fri, 17 Jul 2026 14:45:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Token=E6=98=A0=E5=B0=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=A2=9E=E5=BC=BA=20+=20=E6=A8=A1=E5=9E=8B=E8=AF=A6?= =?UTF-8?q?=E6=83=85API=20+=20=E7=BC=96=E8=BE=91=E5=99=A8=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Token 映射下拉: - 新增 flattenWrappedFields 函数递归提取 { type, attrs } 结构中的叶子字段 - 下拉选项显示 路径 — 标签 格式,选中值存完整路径 - 同步/流式从响应映射取,异步从回调响应映射取 2. 模型详情 API: - 新增 getModelManage 详情接口 (/model/manage/getModelManage) - openDialog 改为 async,编辑时调详情接口获取完整数据 - 修复 res.data.modelManage 取值路径 3. JSON 编辑器布局: - 弹窗宽度 1000px → 1200px - 配置侧栏 320px → 380px - config-summary 改用 flex:1 防止滚动条截断文本 Co-Authored-By: Claude --- .env.development | 4 +- src/api/settings/modelConfigV2/index.ts | 18 +++ .../json-schema-editor/JsonNode.vue | 2 +- src/components/json-schema-editor/index.vue | 2 +- .../modelConfigV2/component/editModule.vue | 104 +++++++++++++----- src/views/settings/modelConfigV2/index.vue | 4 +- 6 files changed, 99 insertions(+), 35 deletions(-) diff --git a/.env.development b/.env.development index 07483ec..524387b 100644 --- a/.env.development +++ b/.env.development @@ -3,6 +3,6 @@ ENV = 'development' # 统一后端服务地址前缀(网关服务名:admin-go) # 开发环境走本地代理,避免 CORS -# VITE_API_URL = 'http://116.204.74.41:8000' -VITE_API_URL = 'http://192.168.3.30:8000' +VITE_API_URL = 'http://116.204.74.41:8000' +# VITE_API_URL = 'http://192.168.3.30:8000' # VITE_API_URL = 'http://192.168.3.135:8000' \ No newline at end of file diff --git a/src/api/settings/modelConfigV2/index.ts b/src/api/settings/modelConfigV2/index.ts index 237894a..602bb31 100644 --- a/src/api/settings/modelConfigV2/index.ts +++ b/src/api/settings/modelConfigV2/index.ts @@ -174,6 +174,24 @@ export interface UpdateModelManageParams extends Partial - + - + - + @@ -236,7 +236,7 @@ - +