矿池租赁的登录字段修改

This commit is contained in:
2025-10-27 16:35:34 +08:00
parent e289f2ccac
commit 869ec8424e
5 changed files with 8 additions and 3 deletions

View File

@@ -677,14 +677,17 @@ export default {
const userEmail = localStorage.getItem('userEmail') || '';
const language = this.$i18n.locale || 'zh';
const username = localStorage.getItem('username') || '';
if (!token || !userEmail) {
this.$message.error("登录信息异常,请重新登录");
return;
}
// 定义加密密钥(生产环境应该从环境变量或配置文件中获取)
const secretKey = 'mining-pool-secret-key-2024';
// 准备要加密的敏感数据
const sensitiveData = {
token: token,
userEmail: userEmail,
leasEmail: userEmail,
timestamp: Date.now()
};