mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 06:49:37 +08:00
对参数进行加密,参数名称调整
This commit is contained in:
parent
d5ca9fa6df
commit
d576ad8a56
@ -162,12 +162,21 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let username = this.$route.query.username
|
let username = this.$route.query.from
|
||||||
let pwd = this.$route.query.pwd
|
let pwd = this.$route.query.next
|
||||||
if (username && username != '' && pwd && pwd != '') {
|
if (username && username != '' && pwd && pwd != '') {
|
||||||
|
// 解密
|
||||||
|
let newUName = ''
|
||||||
|
newUName = decodeURIComponent(atob(username).split('').map(function(c) {
|
||||||
|
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2)
|
||||||
|
}).join(''))
|
||||||
|
let newPwd = ''
|
||||||
|
newPwd = decodeURIComponent(atob(pwd).split('').map(function(c) {
|
||||||
|
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2)
|
||||||
|
}).join(''))
|
||||||
this.form.setFieldsValue({
|
this.form.setFieldsValue({
|
||||||
'username': username,
|
'username': newUName,
|
||||||
'password': pwd
|
'password': newPwd
|
||||||
})
|
})
|
||||||
this.loginForm()
|
this.loginForm()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user