From e5f2eb99553a6d8034fbedc3fb5b11fb7ee20276 Mon Sep 17 00:00:00 2001 From: iczer <1126263215@qq.com> Date: Wed, 19 Aug 2020 10:00:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20exception=20in=20single=20tab=20mode;=20?= =?UTF-8?q?:bug:=20#103=20=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=8D=95=E9=A1=B5?= =?UTF-8?q?=E7=AD=BE=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=9A=84=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E9=97=AE=E9=97=AE=E9=A2=98=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/tabs/TabsView.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layouts/tabs/TabsView.vue b/src/layouts/tabs/TabsView.vue index 2f35161..cf33f73 100644 --- a/src/layouts/tabs/TabsView.vue +++ b/src/layouts/tabs/TabsView.vue @@ -70,7 +70,9 @@ export default { }, mounted () { this.correctPageMinHeight(-this.tabsOffset) - this.cachedKeys.push(this.$refs.tabContent.$vnode.key) + if(this.multiPage){ + this.cachedKeys.push(this.$refs.tabContent.$vnode.key) + } }, beforeDestroy() { window.removeEventListener('page:close', this.closePageListener)