From 321a35aeabef14792047a6d9070fad0ee8944c54 Mon Sep 17 00:00:00 2001 From: "song.tianyang" Date: Thu, 25 Mar 2021 16:59:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E6=A1=A3=E4=B8=8D=E8=B6=85?= =?UTF-8?q?=E8=BF=875=E4=B8=AA=E6=95=B0=E6=8D=AE=E6=97=B6=E4=B8=8B?= =?UTF-8?q?=E6=BB=9A=E5=87=BA=E7=8E=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 文档不超过5个数据时下滚出现问题 --- .../definition/components/document/ApiDocumentAnchor.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue b/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue index 194605f3ad..5b28afe295 100644 --- a/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue +++ b/frontend/src/business/components/api/definition/components/document/ApiDocumentAnchor.vue @@ -643,7 +643,7 @@ export default { if(lastIndex < this.currentApiIndexInApiShowArray){ //上移 - if(this.needAsyncSelect){ + // if(this.needAsyncSelect){ //进行判断:是否还需要为apiShowArray 增加数据。 由于在当前数据前后最多展现2条数据, //可得: apiStepIndex-1- 2 < apiInfoArray,需要添加数据 let dataIndex = this.apiStepIndex -3; @@ -657,11 +657,11 @@ export default { if(this.apiShowArray.length > (this.currentApiIndexInApiShowArray+3)){ this.apiShowArray.pop(); } - } + // } this.apiStepIndex --; }else if(lastIndex > this.currentApiIndexInApiShowArray){ //下滚 - if(this.needAsyncSelect){ + // if(this.needAsyncSelect){ //进行判断:是否还需要为apiShowArray 增加数据。 由于在当前数据前后最多展现2条数据, //可得: apiStepIndex+1+ 2 < apiInfoArray,需要添加数据 let dataIndex = this.apiStepIndex +3; @@ -678,7 +678,7 @@ export default { let itemHeight = this.$refs.apiDocInfoDivItem[0].offsetHeight+10; this.$refs.apiDocInfoDiv.scrollTop = (apiDocDivScrollTop-itemHeight); } - } + // } this.apiStepIndex ++; } }