From a0531deadef4ad3e96f64c8666168332280fea2d Mon Sep 17 00:00:00 2001 From: TiaStars Date: Sat, 14 Sep 2024 11:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=84=B1=E6=95=8F=E7=8E=AF=E5=A2=83=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E5=8A=A0=E5=AF=86=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/utils/jsencrypt.js | 3 +-- src/views/login_v1.vue | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 2236d82..94c0381 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ruoyi", - "version": "1.0.202409091333", + "version": "1.0.202409141058", "description": "金鸡湖现代服务业品牌管理系统", "author": "若依", "license": "MIT", diff --git a/src/utils/jsencrypt.js b/src/utils/jsencrypt.js index 78d9523..31d9912 100644 --- a/src/utils/jsencrypt.js +++ b/src/utils/jsencrypt.js @@ -2,8 +2,7 @@ import JSEncrypt from 'jsencrypt/bin/jsencrypt.min' // 密钥对生成 http://web.chacuo.net/netrsakeypair -const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdH\n' + - 'nzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ==' +const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAOEI/QLz9WM0NvGeS44KpR5dbVrvJTTfLu5x3u10CwENqmHEafYPMz4SfBn99//vkLKxO0cRKM3MS+lb/1oSVqsCAwEAAQ==' const privateKey = 'MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAqhHyZfSsYourNxaY\n' + '7Nt+PrgrxkiA50efORdI5U5lsW79MmFnusUA355oaSXcLhu5xxB38SMSyP2KvuKN\n' + diff --git a/src/views/login_v1.vue b/src/views/login_v1.vue index 44d0998..d39764d 100644 --- a/src/views/login_v1.vue +++ b/src/views/login_v1.vue @@ -192,7 +192,7 @@ export default { Cookies.remove("rememberMe"); } this.$store - .dispatch("Login", {...this.loginForm,userType:this.userType}) + .dispatch("Login", {...this.loginForm,userType:this.userType, password: encrypt(this.loginForm.password)}) .then(() => { this.$router.push({ path: this.redirect || "/" }).catch(() => {}); })