mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 04:29:36 +08:00
对参数进行加密,参数名称调整
This commit is contained in:
parent
d5ca9fa6df
commit
d576ad8a56
@ -162,12 +162,21 @@ export default {
|
||||
|
||||
},
|
||||
mounted() {
|
||||
let username = this.$route.query.username
|
||||
let pwd = this.$route.query.pwd
|
||||
let username = this.$route.query.from
|
||||
let pwd = this.$route.query.next
|
||||
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({
|
||||
'username': username,
|
||||
'password': pwd
|
||||
'username': newUName,
|
||||
'password': newPwd
|
||||
})
|
||||
this.loginForm()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user