对参数进行加密,参数名称调整

This commit is contained in:
471615499@qq.com 2024-10-20 20:25:57 +08:00
parent d5ca9fa6df
commit d576ad8a56

View File

@ -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()
}