瀏覽代碼

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
     // 无牌车流程