浏览代码

阳光跑不用跳转

linxuxiang 1 月之前
父节点
当前提交
2261f81968
共有 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'].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)