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) {