From 74b76d9914ff2241a7069fd9903ebf5ba107fd56 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 30 Jun 2025 10:44:49 +0800 Subject: [PATCH] feat: prevent editing of shared tools in ToolListContainer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1057658 --user=刘瑞斌 【共享资源】工作空间用户可以编辑当前工作空间的共享工具 https://www.tapd.cn/62980211/s/1719993 --- ui/src/views/tool/component/ToolListContainer.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/views/tool/component/ToolListContainer.vue b/ui/src/views/tool/component/ToolListContainer.vue index d182998fd..040859e38 100644 --- a/ui/src/views/tool/component/ToolListContainer.vue +++ b/ui/src/views/tool/component/ToolListContainer.vue @@ -366,6 +366,10 @@ function openCreateDialog(data?: any) { if (data?.template_id) { return } + // 共享过来的工具不让编辑 + if (isShared.value) { + return + } ToolDrawertitle.value = data ? t('views.tool.editTool') : t('views.tool.createTool') if (data) { loadSharedApi({ type: 'tool', systemType: apiType.value })