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 { setFavicon, watchStyle, watchTheme } from '@/utils/theme';
import { getLarkCallback, getLarkSuiteCallback, getPublicKeyRequest } from './api/modules/user'; 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 enUS from '@arco-design/web-vue/es/locale/lang/en-us';
import zhCN from '@arco-design/web-vue/es/locale/lang/zh-cn'; import zhCN from '@arco-design/web-vue/es/locale/lang/zh-cn';
@ -52,7 +53,9 @@
onBeforeMount(async () => { onBeforeMount(async () => {
try { try {
appStore.initSystemVersion(); // appStore.initSystemVersion(); //
appStore.initFileSizeLimit(); // if (hasAnyPermission(['SYSTEM_PARAMETER_SETTING_BASE:READ'])) {
appStore.initFileSizeLimit(); //
}
// license // license
if (appStore.getPackageType === 'enterprise') { if (appStore.getPackageType === 'enterprise') {
licenseStore.getValidateLicense(); licenseStore.getValidateLicense();

View File

@ -424,7 +424,11 @@ export default function useMinderBaseApi({ hasEditPermission }: { hasEditPermiss
switch (type) { switch (type) {
case 'AppendChildNode': case 'AppendChildNode':
if (node.data?.resource?.includes(moduleTag)) { if (node.data?.resource?.includes(moduleTag)) {
execInert('AppendChildNode'); if (value) {
insertSpecifyNode('AppendChildNode', value);
} else {
execInert('AppendChildNode');
}
} else if (node.data?.resource?.includes(caseTag)) { } else if (node.data?.resource?.includes(caseTag)) {
// 给用例插入子节点 // 给用例插入子节点
if (value) { if (value) {