From 087bde0c125311e9ee2cbd3ffdda2e4230f1e197 Mon Sep 17 00:00:00 2001 From: Vincent-lee90 Date: Tue, 21 Apr 2020 16:25:09 +0800 Subject: [PATCH] avoid the "duplicated promise" error which comes from the vue-router ( fix #252 ) --- src/components/PageNavigator/PageNavigator.vue | 2 +- src/components/PageNavigator/PageNavigatorTs.ts | 6 ++++++ .../pages/wallets/WalletDetailsPage/WalletDetailsPage.vue | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/PageNavigator/PageNavigator.vue b/src/components/PageNavigator/PageNavigator.vue index 0c4ec593d..b63c41e83 100644 --- a/src/components/PageNavigator/PageNavigator.vue +++ b/src/components/PageNavigator/PageNavigator.vue @@ -9,7 +9,7 @@ $route.matched.map(({path}) => path).includes(route.path) ? 'active' : '', !currentAccount ? 'un_click' : '', ]" - @click="!currentAccount ? '' : $router.push({name: route.name})" + @click="onPageNavigate(route)" >