From 2b89fc05d12a0c918821f7864cfa0154748ca5df Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 16 Jul 2025 16:09:22 +0800 Subject: [PATCH] perf: clear console --- .../components/ai-chat/component/chat-input-operate/index.vue | 1 - ui/src/views/chat-log/component/EditMarkDialog.vue | 1 - ui/src/views/chat/index.vue | 2 -- ui/src/views/paragraph/index.vue | 4 ---- ui/src/views/system/resource-authorization/index.vue | 1 - ui/src/views/tool/component/ToolListContainer.vue | 1 - .../nodes/base-node/component/UserInputFieldTable.vue | 2 -- ui/src/workflow/nodes/mcp-node/index.vue | 3 --- ui/src/workflow/nodes/search-knowledge-node/index.vue | 2 +- 9 files changed, 1 insertion(+), 16 deletions(-) diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue index b950df35c..e616d0d68 100644 --- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue +++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue @@ -483,7 +483,6 @@ const handlePaste = (event: ClipboardEvent) => { } // 新增拖拽处理 const handleDrop = (event: DragEvent) => { - console.log(event) if (!props.applicationDetails.file_upload_enable) return event.preventDefault() const files = event.dataTransfer?.files diff --git a/ui/src/views/chat-log/component/EditMarkDialog.vue b/ui/src/views/chat-log/component/EditMarkDialog.vue index 095703821..ab6578cff 100644 --- a/ui/src/views/chat-log/component/EditMarkDialog.vue +++ b/ui/src/views/chat-log/component/EditMarkDialog.vue @@ -120,7 +120,6 @@ function deleteMark() { } function getMark(data: any) { - console.log(data) chatLogApi .getMarkChatRecord(id as string, data.chat_id, data.id, loading) .then((res: any) => { diff --git a/ui/src/views/chat/index.vue b/ui/src/views/chat/index.vue index 82bcbc735..567ae665f 100644 --- a/ui/src/views/chat/index.vue +++ b/ui/src/views/chat/index.vue @@ -23,8 +23,6 @@ const { query: { mode }, } = route as any - -console.log(mode) const currentTemplate = computed(() => { let modeName = '' if (chatUser.application) { diff --git a/ui/src/views/paragraph/index.vue b/ui/src/views/paragraph/index.vue index 2393f74c5..e38935158 100644 --- a/ui/src/views/paragraph/index.vue +++ b/ui/src/views/paragraph/index.vue @@ -236,16 +236,12 @@ function changeState(id: string) { } function refreshMigrateParagraph(data: any) { - console.log(data) if (data) { multipleSelection.value = [data.id] } - console.log(paragraphDetail.value) - console.log(multipleSelection.value) paragraphDetail.value = paragraphDetail.value.filter( (v) => !multipleSelection.value.includes(v.id), ) - console.log(paragraphDetail.value) multipleSelection.value = [] MsgSuccess(t('views.document.tip.migrationSuccess')) } diff --git a/ui/src/views/system/resource-authorization/index.vue b/ui/src/views/system/resource-authorization/index.vue index f3975f07f..f8e896d1a 100644 --- a/ui/src/views/system/resource-authorization/index.vue +++ b/ui/src/views/system/resource-authorization/index.vue @@ -172,7 +172,6 @@ const permissionObj = ref({ 'OR', ), }) -console.log(route.meta.resource || 'APPLICATION') const settingTags = reactive([ { label: t('views.knowledge.title'), diff --git a/ui/src/views/tool/component/ToolListContainer.vue b/ui/src/views/tool/component/ToolListContainer.vue index 8a8998e95..9bda4e6f6 100644 --- a/ui/src/views/tool/component/ToolListContainer.vue +++ b/ui/src/views/tool/component/ToolListContainer.vue @@ -650,7 +650,6 @@ onMounted(() => { .then((res: any) => { user_options.value = res.data }) - console.log(apiType.value) }) diff --git a/ui/src/workflow/nodes/base-node/component/UserInputFieldTable.vue b/ui/src/workflow/nodes/base-node/component/UserInputFieldTable.vue index e6d2e1c7e..fa4a502a0 100644 --- a/ui/src/workflow/nodes/base-node/component/UserInputFieldTable.vue +++ b/ui/src/workflow/nodes/base-node/component/UserInputFieldTable.vue @@ -169,8 +169,6 @@ function refreshFieldList(data: any, index: any) { function refreshFieldTitle(data: any) { inputFieldConfig.value = data UserInputTitleDialogRef.value.close() - - // console.log('inputFieldConfig', inputFieldConfig.value) } const getDefaultValue = (row: any) => { diff --git a/ui/src/workflow/nodes/mcp-node/index.vue b/ui/src/workflow/nodes/mcp-node/index.vue index b0c27b89c..0959d724c 100644 --- a/ui/src/workflow/nodes/mcp-node/index.vue +++ b/ui/src/workflow/nodes/mcp-node/index.vue @@ -274,7 +274,6 @@ function changeTool() { form_data.value.mcp_server = form_data.value.mcp_tools.find( (item: any) => item.name === form_data.value.mcp_tool, )?.server - // console.log(form_data.value.mcp_server) const args_schema = form_data.value.mcp_tools.find( (item: any) => item.name === form_data.value.mcp_tool, @@ -297,7 +296,6 @@ function changeTool() { } else if (params[item2].type === 'object') { input_type = 'JsonInput' } - console.log(params[item2]) form_data.value.tool_form_field.push({ field: item2, label: { @@ -334,7 +332,6 @@ function changeTool() { } else if (args_schema.properties[item].type === 'object') { input_type = 'JsonInput' } - console.log(args_schema.properties[item]) form_data.value.tool_form_field.push({ field: item, label: { diff --git a/ui/src/workflow/nodes/search-knowledge-node/index.vue b/ui/src/workflow/nodes/search-knowledge-node/index.vue index d59ae6fdd..e68d03e9e 100644 --- a/ui/src/workflow/nodes/search-knowledge-node/index.vue +++ b/ui/src/workflow/nodes/search-knowledge-node/index.vue @@ -217,7 +217,7 @@ const validate = () => { } onMounted(() => { - console.log(props.nodeModel.properties.node_data) + // console.log(props.nodeModel.properties.node_data) knowledgeList.value = props.nodeModel.properties.node_data.knowledge_list set(props.nodeModel, 'validate', validate) })