用户新增传输过程加密
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user