fix(系统): 系统配置读取权限判定&脑图快捷键

This commit is contained in:
baiqi 2024-09-26 11:56:50 +08:00 committed by Craftsman
parent 2e5b6b422f
commit c48b9fb245
2 changed files with 9 additions and 2 deletions

View File

@ -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();

View File

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