Forráskód Böngészése

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

zhuliu 1 éve
szülő
commit
27e45ed3ed
1 módosított fájl, 1 hozzáadás és 1 törlés
  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
         }