소스 검색

fix(SCRM-5084): 移除首页的延时切换路由

john 1 년 전
부모
커밋
232df1b451
1개의 변경된 파일6개의 추가작업 그리고 8개의 파일을 삭제
  1. 6 8
      src/pages/parkingFeeV2/mixins/parkingFee.js

+ 6 - 8
src/pages/parkingFeeV2/mixins/parkingFee.js

@@ -91,14 +91,12 @@ export default {
         [this.$route.query.fromPage]: 1
       })
       localStorage.setItem(`${this.$route.query.fromPage}`, this.$route.query.fromPage)
-      setTimeout(() => {
-        this.$router.push({
-          path: this.$route.query.fromPage, query: {
-            ...this.$route.query,
-            loginCount: 1
-          }
-        });
-      }, 300)
+      this.$router.push({
+        path: this.$route.query.fromPage, query: {
+          ...this.$route.query,
+          loginCount: 1
+        }
+      });
     }
     const {type = '', code = ''} = this.$route.query
     // 无牌车流程