Просмотр исходного кода

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

zhuliu 1 год назад
Родитель
Сommit
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
         }