From e7b144d15dd6b7c5f99b496bd6bcb8470e4c8f61 Mon Sep 17 00:00:00 2001 From: From-wh Date: Thu, 18 May 2023 09:03:39 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E5=8F=96=E6=B6=88=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/src/main.js | 1 - template/admin/src/pages/account/login/index.vue | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/template/admin/src/main.js b/template/admin/src/main.js index 6d1370a9f..1a2ab3dac 100644 --- a/template/admin/src/main.js +++ b/template/admin/src/main.js @@ -196,7 +196,6 @@ new Vue({ } }); } - console.log(to.name); if ( [ 'product_productAdd', diff --git a/template/admin/src/pages/account/login/index.vue b/template/admin/src/pages/account/login/index.vue index d62b1ff9e..4ab6816dd 100644 --- a/template/admin/src/pages/account/login/index.vue +++ b/template/admin/src/pages/account/login/index.vue @@ -75,7 +75,6 @@ import '@/assets/js/canvas-nest.min'; import Verify from '@/components/verifition/Verify'; import { PrevLoading } from '@/utils/loading.js'; import { formatFlatteningRoutes, findFirstNonNullChildren } from '@/libs/system'; -import { encryptWithKey } from '@/utils/ase.js'; export default { components: { @@ -108,7 +107,6 @@ export default { key: '', copyright: '', version: '', - publicKey: '', }; }, created() { @@ -172,7 +170,6 @@ export default { this.swiperList = data.slide.length ? data.slide : [{ slide: this.defaultSwiperList }]; this.key = data.key; this.copyright = data.copyright; - this.publicKey = data.publicKey; this.version = data.version; this.login_captcha = data.login_captcha; }) @@ -196,7 +193,7 @@ export default { this.loading = true; AccountLogin({ account: this.formInline.username, - pwd: encryptWithKey(this.formInline.password, this.publicKey), + pwd: this.formInline.password, key: this.key, captchaType: 'blockPuzzle', captchaVerification: params ? params.captchaVerification : '',