8ba006a8 by lihua

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

1 parent fbd63610
......@@ -84,7 +84,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!