소스 검색

解决从第六件专利进入专利详情查询数据时current传入错误

zhuliu 1 년 전
부모
커밋
27e45ed3ed
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/project/patentDetails/components/menu.vue

+ 1 - 1
src/views/project/patentDetails/components/menu.vue

@@ -208,7 +208,7 @@ export default {
     setQueryParams(){
       if(!this.outside){
         if(this.isContract){
-          this.queryParams.current = ((this.currentLocation-1) < 5)? 1 : ((this.currentLocation-1) - 5)
+          this.queryParams.current = ((this.currentLocation-1) <= 5)? 1 : ((this.currentLocation-1) - 5)
         }else{
           this.queryParams.current = parseInt((this.currentLocation-1) / this.queryParams.size) + 1
         }