From 11a05c05055a7f8959007e744da16730c335c78d Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 11 Nov 2021 17:01:04 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1220=20fix=EF=BC=9A=20license=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=9A=90=E8=97=8F=EF=BC=8C=E6=9F=A5=E8=AF=A2=E5=90=8E?= =?UTF-8?q?=E8=8B=A5=E6=9C=89=E9=9C=80=E8=A6=81=E5=86=8D=E5=87=BA=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/login.vue | 4 ++-- .../src/components/common/table/settings/endpointTable.vue | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/common/login.vue b/nezha-fronted/src/components/common/login.vue index 495deb71d..a889b3702 100644 --- a/nezha-fronted/src/components/common/login.vue +++ b/nezha-fronted/src/components/common/login.vue @@ -127,7 +127,7 @@ export default { license: { warnInfo: '', token: '', - valid: false + valid: true }, uploadFileList: [], uploadFile: { file: '', path: '', uuid: '' }, @@ -148,7 +148,7 @@ export default { methods: { ...mapActions(['loginSuccess']), login () { - if (this.loading || !this.license.valid) { + if (this.loading || !this.license.valid || !this.license.token) { return } if (this.validateLogin() && (this.$route.path == '/' || this.$route.path == '/login')) { diff --git a/nezha-fronted/src/components/common/table/settings/endpointTable.vue b/nezha-fronted/src/components/common/table/settings/endpointTable.vue index 0c721f733..a14e86c39 100644 --- a/nezha-fronted/src/components/common/table/settings/endpointTable.vue +++ b/nezha-fronted/src/components/common/table/settings/endpointTable.vue @@ -110,7 +110,7 @@