li.shaoyi 2 anos atrás
pai
commit
9981a5cced
2 arquivos alterados com 8 adições e 3 exclusões
  1. 1 1
      src/mock/router.ts
  2. 7 2
      src/packages/mobile/router/animateRouter.ts

+ 1 - 1
src/mock/router.ts

@@ -72,7 +72,7 @@ const appmenu = {
                     },
                     {
                         authType: 3,
-                        title: '支',
+                        title: '支',
                         code: 'PromotionPayment',
                         component: 'views/promotion/components/payment/index.vue',
                     },

+ 7 - 2
src/packages/mobile/router/animateRouter.ts

@@ -131,9 +131,14 @@ export default new (class {
                     transitionName.value = 'route-out'; //后退动画
                 }
             } else {
-                history.value.push(route);
-                if (history.value.length > 1) {
+                // 忽略重定向的页面
+                if (route.redirectedFrom) {
                     transitionName.value = 'route-in'; // 前进动画
+                } else {
+                    history.value.push(route);
+                    if (history.value.length > 1) {
+                        transitionName.value = 'route-in'; // 前进动画
+                    }
                 }
             }
         }