From d35240e54243334927db52061ec8908128d720f0 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 11 Oct 2022 16:21:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=AA=E6=9C=89?= =?UTF-8?q?=E5=BC=80=E6=BA=90=E9=83=A8=E5=88=86=E7=9A=84=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/components/version/MxVersionSelect.vue | 3 +++ framework/sdk-parent/frontend/src/directive/module/index.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/sdk-parent/frontend/src/components/version/MxVersionSelect.vue b/framework/sdk-parent/frontend/src/components/version/MxVersionSelect.vue index d4e6b6f10e..4649f0ae19 100644 --- a/framework/sdk-parent/frontend/src/components/version/MxVersionSelect.vue +++ b/framework/sdk-parent/frontend/src/components/version/MxVersionSelect.vue @@ -80,6 +80,9 @@ export default { }, watch: { projectId() { + if (!hasLicense()) { + return; + } this.currentVersion = null; this.getVersionOptionList(this.projectId); this.isVersionEnable(); diff --git a/framework/sdk-parent/frontend/src/directive/module/index.js b/framework/sdk-parent/frontend/src/directive/module/index.js index 38a1c14015..ad9926deae 100644 --- a/framework/sdk-parent/frontend/src/directive/module/index.js +++ b/framework/sdk-parent/frontend/src/directive/module/index.js @@ -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; } }