From c48b9fb245b8e0cb19096077bb712c21e18e26a3 Mon Sep 17 00:00:00 2001 From: baiqi Date: Thu, 26 Sep 2024 11:56:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F):=20=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=AF=BB=E5=8F=96=E6=9D=83=E9=99=90=E5=88=A4?= =?UTF-8?q?=E5=AE=9A&=E8=84=91=E5=9B=BE=E5=BF=AB=E6=8D=B7=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.vue | 5 ++++- .../ms-minders/featureCaseMinder/useMinderBaseApi.ts | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index d06d444e33..d627bfe2f8 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -25,6 +25,7 @@ import { setFavicon, watchStyle, watchTheme } from '@/utils/theme'; import { getLarkCallback, getLarkSuiteCallback, getPublicKeyRequest } from './api/modules/user'; + import { hasAnyPermission } from './utils/permission'; import enUS from '@arco-design/web-vue/es/locale/lang/en-us'; import zhCN from '@arco-design/web-vue/es/locale/lang/zh-cn'; @@ -52,7 +53,9 @@ onBeforeMount(async () => { try { appStore.initSystemVersion(); // 初始化系统版本 - appStore.initFileSizeLimit(); // 初始化文件大小限制 + if (hasAnyPermission(['SYSTEM_PARAMETER_SETTING_BASE:READ'])) { + appStore.initFileSizeLimit(); // 初始化文件大小限制 + } // 企业版才校验license if (appStore.getPackageType === 'enterprise') { licenseStore.getValidateLicense(); diff --git a/frontend/src/components/business/ms-minders/featureCaseMinder/useMinderBaseApi.ts b/frontend/src/components/business/ms-minders/featureCaseMinder/useMinderBaseApi.ts index df7e21fe5e..014078460e 100644 --- a/frontend/src/components/business/ms-minders/featureCaseMinder/useMinderBaseApi.ts +++ b/frontend/src/components/business/ms-minders/featureCaseMinder/useMinderBaseApi.ts @@ -424,7 +424,11 @@ export default function useMinderBaseApi({ hasEditPermission }: { hasEditPermiss switch (type) { case 'AppendChildNode': if (node.data?.resource?.includes(moduleTag)) { - execInert('AppendChildNode'); + if (value) { + insertSpecifyNode('AppendChildNode', value); + } else { + execInert('AppendChildNode'); + } } else if (node.data?.resource?.includes(caseTag)) { // 给用例插入子节点 if (value) {