1256572a by lihua

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

1 parent f36b4c9b
...@@ -83,7 +83,7 @@ const useUserStore = defineStore( ...@@ -83,7 +83,7 @@ const useUserStore = defineStore(
83 83
84 function refreshUserToken(isExec = true) { 84 function refreshUserToken(isExec = true) {
85 let expiresIn = localStorage.getItem('expiresIn'); 85 let expiresIn = localStorage.getItem('expiresIn');
86 if (!expiresIn) { 86 if (!expiresIn || (parseInt(expiresIn) - Date.now()) < -1700000) {
87 return; 87 return;
88 } 88 }
89 const process = async () => { 89 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!