From 8eb2e443205826c7b10a5eb8d8bdc238ab0d91fa Mon Sep 17 00:00:00 2001 From: Wangjiahao <1522128093@qq.com> Date: Tue, 4 Apr 2023 18:26:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E5=8D=A1=E7=BB=84=E4=BB=B6tab=E9=A1=B5=E8=BF=87?= =?UTF-8?q?=E5=A4=9A=E6=97=B6=EF=BC=8C=E8=BD=AE=E6=92=AD=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E8=A2=AB=E9=81=AE=E6=8C=A1=EF=BC=8C=E7=9C=8B=E4=B8=8D=E8=A7=81?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=A0=87=E9=A2=98=E4=BA=86=20#4956?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/widget/deWidget/DeTabs.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/widget/deWidget/DeTabs.vue b/frontend/src/components/widget/deWidget/DeTabs.vue index 1dc9b1b474..3ef69c5547 100644 --- a/frontend/src/components/widget/deWidget/DeTabs.vue +++ b/frontend/src/components/widget/deWidget/DeTabs.vue @@ -478,7 +478,7 @@ export default { methods: { calcTabLength(){ this.$nextTick(()=>{ - if(this.element.options.tabList.length>0){ + if(this.element.options.tabList.length>1){ const containerDom = document.getElementById("tab-"+this.element.options.tabList[this.element.options.tabList.length -1].name) this.tabsAreaScroll = containerDom.parentNode.scrollWidth > containerDom.parentNode.parentNode.scrollWidth }else{