From e618b37309a5459c162e0bb7780f3b80fc8cba61 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Mon, 14 Jul 2025 10:10:20 +0800 Subject: [PATCH] fix: tip --- .../component/CopyApplicationDialog.vue | 17 +---------------- .../component/KnowledgeListContainer.vue | 2 +- .../views/tool/component/ToolListContainer.vue | 2 +- 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/ui/src/views/application/component/CopyApplicationDialog.vue b/ui/src/views/application/component/CopyApplicationDialog.vue index 45a5e4f2f..c0bc07b6f 100644 --- a/ui/src/views/application/component/CopyApplicationDialog.vue +++ b/ui/src/views/application/component/CopyApplicationDialog.vue @@ -38,7 +38,7 @@ {{ $t('common.cancel') }} - + {{ $t('common.copy') }} @@ -144,21 +144,6 @@ const open = (data: any, folder: string) => { dialogVisible.value = true } -const submitValid = (formEl: FormInstance | undefined) => { - if (user.isEE() || user.isPE()) { - submitHandle(formEl) - } else { - common - .asyncGetValid(ValidType.Application, ValidCount.Application, loading) - .then(async (res: any) => { - if (res?.data) { - submitHandle(formEl) - } else { - MsgAlert(t('common.tip'), t('views.application.tip.professionalMessage')) - } - }) - } -} const submitHandle = async (formEl: FormInstance | undefined) => { if (!formEl) return await formEl.validate((valid) => { diff --git a/ui/src/views/knowledge/component/KnowledgeListContainer.vue b/ui/src/views/knowledge/component/KnowledgeListContainer.vue index 6538cc6c2..fe370a88a 100644 --- a/ui/src/views/knowledge/component/KnowledgeListContainer.vue +++ b/ui/src/views/knowledge/component/KnowledgeListContainer.vue @@ -117,7 +117,7 @@ --> - +
diff --git a/ui/src/views/tool/component/ToolListContainer.vue b/ui/src/views/tool/component/ToolListContainer.vue index aa55b40fe..f8a2ce94c 100644 --- a/ui/src/views/tool/component/ToolListContainer.vue +++ b/ui/src/views/tool/component/ToolListContainer.vue @@ -565,7 +565,7 @@ function importTool(file: any) { }) .then(() => { getList() - + }) .catch((e: any) => { if (e.code === 400) {