From 329ca79fb7400bfc603463f7739090914893c2f5 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Thu, 10 Dec 2020 16:57:23 +0800
Subject: [PATCH] 导航跳转页面跳出执行栈再执行

---
 layout/h5Page/CNavBar.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/layout/h5Page/CNavBar.vue b/layout/h5Page/CNavBar.vue
index 75bed2e..b5dbf3e 100644
--- a/layout/h5Page/CNavBar.vue
+++ b/layout/h5Page/CNavBar.vue
@@ -56,7 +56,9 @@
                 return;
             }
             this.dropShow = false;
-            Taro.navigateTo({ url: nav.url });
+            setTimeout(() => {
+                Taro.navigateTo({ url: nav.url });
+            }, 0);
         },
         dropMenu() {
             this.dropShow = !this.dropShow;

--
Gitblit v1.9.1