Jelajahi Sumber

fix: 定时同步账号改为每4小时一次(原为10分钟)

ethanfly 2 hari lalu
induk
melakukan
e1fe12894b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      client/src/stores/auth.ts

+ 1 - 1
client/src/stores/auth.ts

@@ -83,7 +83,7 @@ export const useAuthStore = defineStore('auth', () => {
       enqueueSyncAccountTasks();
     }, initialDelay);
 
-    const intervalMs = 10 * 60 * 1000;
+    const intervalMs = 4 * 60 * 60 * 1000; // 每4小时同步一次
     autoAccountSyncTimer = setInterval(() => {
       enqueueSyncAccountTasks();
     }, intervalMs);