From 710c6ab2ce7cad8b0a4eb276c748983e4fd5977e Mon Sep 17 00:00:00 2001 From: ivamp Date: Tue, 13 Aug 2024 09:35:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/assistants/[id]/edit.vue | 6 +++--- src/pages/assistants/index.vue | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/pages/assistants/[id]/edit.vue b/src/pages/assistants/[id]/edit.vue index 51629b3..0e4d709 100644 --- a/src/pages/assistants/[id]/edit.vue +++ b/src/pages/assistants/[id]/edit.vue @@ -71,7 +71,7 @@

主页地址: {{ tool.data?.homepage_url }}

- 绑定 + 绑定 @@ -157,8 +157,8 @@ function refresh() { getBindedTools(); } -function bindTool(toolId: number) { - api.Assistant.apiV1AssistantsIdToolsToolIdPost(assistantId, toolId) +function bindTool(toolId: string) { + api.Assistant.apiV1AssistantsIdToolsToolIdPost(assistantId, Number(toolId)) .then(() => { refresh(); }) diff --git a/src/pages/assistants/index.vue b/src/pages/assistants/index.vue index 68f4d36..7e64fbb 100644 --- a/src/pages/assistants/index.vue +++ b/src/pages/assistants/index.vue @@ -22,14 +22,14 @@

Phone: {{ assistant.phone }}

--> - + 对话 - 编辑 - 删除 @@ -88,8 +88,8 @@ const deleteResult = ref({ message: "", }); -function deleteAssistant(assistantId: number) { - selectedAssistantId.value = assistantId; +function deleteAssistant(assistantId: string) { + selectedAssistantId.value = Number(assistantId); dialog.value = true; } @@ -107,11 +107,11 @@ function deleteAssistantConfirmed() { refresh(); } -function editAssistant(assistantId: number) { +function editAssistant(assistantId: string) { router.push(`/assistants/${assistantId}/edit`); } -function showChats(assistantId: number) { +function showChats(assistantId: string) { router.push(`/assistants/${assistantId}/chats`); }