From 6bf571c6817c046dd83968283e6ffadcb486d7cf Mon Sep 17 00:00:00 2001 From: 2910410219 <2910410219@qq.com> Date: Mon, 13 Apr 2026 18:02:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=90=91=E9=87=8F=E7=8A=B6=E6=80=81=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E7=9A=84ID=E7=B1=BB=E5=9E=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 确保在更新文档向量状态时,ID参数被显式转换为字符串类型以避免潜在的类型错误 --- .env.development | 3 +-- src/views/knowledge/component/documentDetailDialog.vue | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index dc98cf5..d2b4520 100644 --- a/.env.development +++ b/.env.development @@ -4,5 +4,4 @@ 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://192.168.3.30:8000' \ No newline at end of file diff --git a/src/views/knowledge/component/documentDetailDialog.vue b/src/views/knowledge/component/documentDetailDialog.vue index 60cec8f..55b32ca 100644 --- a/src/views/knowledge/component/documentDetailDialog.vue +++ b/src/views/knowledge/component/documentDetailDialog.vue @@ -264,7 +264,7 @@ const onVectorStatusChange = async (vector: any, oldValue: boolean) => { if (newStatus !== oldStatus) { try { await updateDocumentVector({ - id: vector.id, + id: String(vector.id), // 确保id是字符串类型 status: newStatus, }); ElMessage.success('更新成功');