From cd7a621aff45f74c5e27bac1055e7713d63f51d2 Mon Sep 17 00:00:00 2001 From: liufumingren Date: Sat, 7 Nov 2026 08:29:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(external-api):=20=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=B1=95=E7=A4=BA=E3=80=8C=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E3=80=8D=EF=BC=8C=E6=8C=89=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=87=AA=E5=8A=A8=E5=86=99=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 接口类型已经能带出地址,表单里再放一个只读又改不了的输入框是噪音: - 弹窗去掉「基础地址」输入项;保存时用类型预设值写入(老配置保留库里的现有值) - 列表与导出仍保留「基础地址」列,方便核对实际使用地址 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- frontend/src/views/ExternalApi/Index.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/ExternalApi/Index.vue b/frontend/src/views/ExternalApi/Index.vue index dbd175e..1ffeead 100644 --- a/frontend/src/views/ExternalApi/Index.vue +++ b/frontend/src/views/ExternalApi/Index.vue @@ -572,7 +572,8 @@ async function submitApiForm() { warehouse_id: currentWarehouse.value!.id, name: apiForm.name, type: apiForm.type || API_TYPE_QIMEN, - base_url: apiForm.base_url, + // 基础地址不在表单里展示,按接口类型预设写入(老配置保留库里已有值) + base_url: apiForm.base_url || API_TYPE_DEFAULT_BASE_URL, app_key: apiForm.app_key, app_secret: apiForm.app_secret, status: apiForm.status, @@ -1470,9 +1471,7 @@ onMounted(async () => { /> - - - +