fix: 修复只有开源部分的前端报错问题
This commit is contained in:
parent
e73b56eda9
commit
d35240e542
|
@ -80,6 +80,9 @@ export default {
|
|||
},
|
||||
watch: {
|
||||
projectId() {
|
||||
if (!hasLicense()) {
|
||||
return;
|
||||
}
|
||||
this.currentVersion = null;
|
||||
this.getVersionOptionList(this.projectId);
|
||||
this.isVersionEnable();
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function enableModules(...modules) {
|
||||
for (let module of modules) {
|
||||
let modules = JSON.parse(localStorage.getItem('modules'));
|
||||
if (modules[module] === 'DISABLE') {
|
||||
if (modules && modules[module] === 'DISABLE') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue