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