feat: prevent editing of shared tools in ToolListContainer

--bug=1057658 --user=刘瑞斌 【共享资源】工作空间用户可以编辑当前工作空间的共享工具 https://www.tapd.cn/62980211/s/1719993
This commit is contained in:
CaptainB 2025-06-30 10:44:49 +08:00
parent e8d29e2cef
commit 74b76d9914

View File

@ -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 })