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 } }