8ba006a8 by lihua

太久的初次登录不调用刷新token接口

1 parent fbd63610
...@@ -84,7 +84,7 @@ const useUserStore = defineStore( ...@@ -84,7 +84,7 @@ const useUserStore = defineStore(
84 84
85 function refreshUserToken(isExec = true) { 85 function refreshUserToken(isExec = true) {
86 let expiresIn = localStorage.getItem('expiresIn'); 86 let expiresIn = localStorage.getItem('expiresIn');
87 if (!expiresIn) { 87 if (!expiresIn || (parseInt(expiresIn) - Date.now()) < -1700000) {
88 return; 88 return;
89 } 89 }
90 const process = async () => { 90 const process = async () => {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!