瀏覽代碼

日常开发

林旭祥 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 = () => {
 const getCountDown = () => {
   timer.value = setTimeout(() => {
   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' });
       router.push({ path: '/ranking' });
     }
     }
   }, 1000 * 60 * 5)
   }, 1000 * 60 * 5)