From 33b3b7fef3be9628de7f4d47f1cc0f44072d82ef Mon Sep 17 00:00:00 2001 From: harrywan Date: Tue, 29 Sep 2020 18:19:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(fes-core):=20=E4=BF=AE=E5=A4=8D=E7=83=AD?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AF=BC=E8=87=B4=E5=88=A4=E5=AE=9A=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84FesHeader=E5=92=8CFesLeft=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #23 --- packages/fes-core/src/instance/page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fes-core/src/instance/page.js b/packages/fes-core/src/instance/page.js index 7a42d7e7..872784c8 100644 --- a/packages/fes-core/src/instance/page.js +++ b/packages/fes-core/src/instance/page.js @@ -61,8 +61,8 @@ const Page = { // route切换时,重新设置为初始值 const comp = (this.$route && this.$route.matched) || []; if (comp.length > 0) { - const matchPage = comp[comp.length - 1].components.default; - if (this.$options.__file === matchPage.__file) { + const matchPage = comp[comp.length - 1].instances.default; + if (this === matchPage) { const header = certainConfig(comp, 'FesHeader'); if (typeof header === 'boolean') { this.$root.header = header;