From 4859405cc6e6f3ea47f85d37a2fbbeddc3c0fee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E7=91=9E?= Date: Tue, 18 Feb 2020 14:11:48 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E9=87=8D=E5=A4=8D=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E5=B5=8C=E5=A5=97=E8=B7=AF=E7=94=B1=E5=90=8E=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/pages/index/router.ts | 4 ++-- src/pages/other/router.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4a60271..5f6242a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vue-tpl", "author": "毛瑞 ", - "version": "1.2.0", + "version": "1.2.1", "private": false, "license": "MIT", "keywords": [ diff --git a/src/pages/index/router.ts b/src/pages/index/router.ts index 45e4002..9aea113 100644 --- a/src/pages/index/router.ts +++ b/src/pages/index/router.ts @@ -78,8 +78,8 @@ function refreshRoute(matched: RouteRecord[], meta: { e: any }) { } } - // 没实例(functional) - 刷她爸爸 - temp === 0 && (matched as any).parent && refreshRoute([(matched as any).parent], meta) + // 没实例 - 刷她爸爸 + !temp && (matched as any).parent && refreshRoute([(matched as any).parent], meta) return } } diff --git a/src/pages/other/router.ts b/src/pages/other/router.ts index b6ea4d8..12d093c 100644 --- a/src/pages/other/router.ts +++ b/src/pages/other/router.ts @@ -78,8 +78,8 @@ function refreshRoute(matched: RouteRecord[], meta: { e: any }) { } } - // 没实例(functional) - 刷她爸爸 - temp === 0 && (matched as any).parent && refreshRoute([(matched as any).parent], meta) + // 没实例 - 刷她爸爸 + !temp && (matched as any).parent && refreshRoute([(matched as any).parent], meta) return } }