From 848c997357398e37fd72f8fbd8e31f2e9c1edeb5 Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Mon, 21 Nov 2022 10:24:25 +0800 Subject: [PATCH] =?UTF-8?q?[fix](=E7=99=BB=E5=BD=95):=20=E8=AE=B0=E4=BD=8F?= =?UTF-8?q?=E5=AF=86=E7=A0=81base64=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- src/components/login-by-account.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b97a112..e1dafb2 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - apaas5 + BD-aPaas
diff --git a/src/components/login-by-account.vue b/src/components/login-by-account.vue index 978c12d..964650f 100644 --- a/src/components/login-by-account.vue +++ b/src/components/login-by-account.vue @@ -87,7 +87,7 @@ export default { methods: { loginAction() { if (this.rememberPassword) { - let userinfo = encodeURI( + let userinfo = window.btoa( encodeURI(`${this.loginForm.userid},${this.loginForm.password}`) ); setCookie("userinfo", userinfo); @@ -192,7 +192,7 @@ export default { created() { this.getImg(); if (getCookie("userinfo")) { - let userinfo = decodeURI(decodeURI(getCookie("userinfo"))).split(","); + let userinfo = window.atob(decodeURI(getCookie("userinfo"))).split(","); this.loginForm.userid = userinfo[0]; this.loginForm.password = userinfo[1]; -- 2.26.0