林旭祥 1 місяць тому
батько
коміт
ca21efedcc
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/layout/index.vue

+ 1 - 1
src/layout/index.vue

@@ -26,7 +26,7 @@ const handClick = () => {
 
 const getCountDown = () => {
   timer.value = setTimeout(() => {
-    if (['/ranking', '/login/mobile', '/sunshineRun'].includes(router.currentRoute.value.fullPath)) {
+    if (!['/ranking', '/login/mobile', '/sunshineRun'].includes(router.currentRoute.value.fullPath)) {
       router.push({ path: '/ranking' });
     }
   }, 1000 * 60 * 5)