This commit is contained in:
parent
eb09cba87e
commit
02b218d1a9
|
@ -192,12 +192,13 @@ const login = () => {
|
|||
|
||||
return decrypted.toString(CryptoJS.enc.Utf8);
|
||||
}
|
||||
|
||||
// 示例:解密一段文本
|
||||
const encryptedText = routers.query.token;
|
||||
const decodedText = decrypt(encryptedText, ENCODED_KEY);
|
||||
// console.log("Decrypted Text:", decodedText);
|
||||
var tokenU = decodedText;
|
||||
if (routers.query.token) {
|
||||
const encryptedText = routers.query.token;
|
||||
const decodedText = decrypt(encryptedText, ENCODED_KEY);
|
||||
console.log("Decrypted Text:", decodedText);
|
||||
var tokenU = decodedText;
|
||||
}
|
||||
// var tokenU = CryptoJS.enc.Utf8.parse(routers.query.token);
|
||||
// var token = getCookie("lytoken");
|
||||
// tokenU = "6b0e380b4a8f46baae4923f83faf670d";
|
||||
|
|
Loading…
Reference in New Issue