mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-17 16:35:53 +08:00
优化一些功能
This commit is contained in:
@@ -71,7 +71,7 @@ service.interceptors.request.use(
|
||||
let jwtData = JSON.parse(
|
||||
decodeURIComponent(escape(window.atob(accessToken.split(".")[1])))
|
||||
);
|
||||
if (jwtData.exp < new Date().getTime() / 1000) {
|
||||
if (jwtData.exp < Math.round(new Date() / 1000)) {
|
||||
refresh()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user