1256572a by lihua

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

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