用户新增传输过程加密

This commit is contained in:
zer0Black
2022-02-24 21:47:08 +08:00
parent 5d221272e4
commit 8749d950f3
11 changed files with 112 additions and 6092 deletions
+2 -3
View File
@@ -184,7 +184,7 @@
import { ACCESS_TOKEN ,ENCRYPTED_STRING} from "@/store/mutation-types"
import { putAction,postAction,getAction } from '@/api/manage'
import { USER_INFO } from "@/store/mutation-types"
import {getRSAPublicKey} from '@/api/login.js'
import { getRSAPublicKey } from '@/utils/encryption.js'
const Base64 = require('js-base64').Base64
import {JSEncrypt} from 'jsencrypt'
@@ -225,7 +225,7 @@
Vue.ls.remove(ACCESS_TOKEN)
this.getRouterData();
this.handleChangeCheckCode();
this.getPublicKey(); //获取秘钥
},
methods: {
...mapActions(['Login', 'Logout', 'PhoneLogin']),
@@ -323,7 +323,6 @@
}).catch(()=>{
this.requestCodeSuccess=false
})
this.getPublicKey();
},
//获取RSA公钥
getPublicKey(){