fix(系统): 系统配置读取权限判定&脑图快捷键
This commit is contained in:
parent
2e5b6b422f
commit
c48b9fb245
|
@ -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();
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue