瀏覽代碼

Merge pull request #334 from John-Hong/John/release-2.20.0/SCRM-5068-2

fix(SCRM-5084): h5内部页面的重定向恢复延迟跳转
John-Hong 1 年之前
父節點
當前提交
2c63bde703
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      src/pages/parkingFeeV2/mixins/parkingFee.js

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

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