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