fix: 增加过期时间

This commit is contained in:
zhangds 2024-03-25 19:26:33 +08:00
parent 281d5c9695
commit 5929759b38
1 changed files with 2 additions and 1 deletions

View File

@ -317,8 +317,9 @@
this.openDialog('正在加载商品...'); this.openDialog('正在加载商品...');
localStorage.setItem('key', self.key); localStorage.setItem('key', self.key);
localStorage.setItem('token', res.data.token); localStorage.setItem('token', res.data.token);
localStorage.setItem('entryLink', window.location.href);//存储起始页链接 localStorage.setItem('entryLink', window.location.href); //存储起始页链接
sessionStorage.setItem("bm_auth", JSON.stringify(res.data)); // 存储包码数据 sessionStorage.setItem("bm_auth", JSON.stringify(res.data)); // 存储包码数据
sessionStorage.setItem("key_expiration_time", res.data.key_expiration_time); // 存储时间
// 统一跳转函数 // 统一跳转函数
this.gotoPage(res.data); this.gotoPage(res.data);
} else { } else {