Merge pull request #2067 from metersphere/pr@dev@fix_module_init
fix(系统设置): 修复初始化模块状态
This commit is contained in:
commit
cb9567d45c
|
@ -34,6 +34,7 @@
|
|||
<script>
|
||||
import {LicenseKey} from '@/common/js/constants';
|
||||
import {mapGetters} from "vuex";
|
||||
import {hasLicense} from "@/common/js/utils";
|
||||
|
||||
const requireContext = require.context('@/business/components/xpack/', true, /router\.js$/);
|
||||
const report = requireContext.keys().map(key => requireContext(key).report);
|
||||
|
@ -95,7 +96,7 @@ export default {
|
|||
}
|
||||
},
|
||||
check(key) {
|
||||
if (module.default !== undefined) {
|
||||
if (module.default !== undefined && hasLicense()) {
|
||||
return this.modules[key] === 'ENABLE';
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue