Selaa lähdekoodia

merge "bug/1000235" into "main"
bug/1000235

Kevin 2 vuotta sitten
vanhempi
commit
b5608a6065
1 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  1. 1 4
      src/views/report/components/reference/ReferenceDraw.vue

+ 1 - 4
src/views/report/components/reference/ReferenceDraw.vue

@@ -119,10 +119,7 @@ function onSectionRecordCancel(sectionId: number) {
 
 function serialNumber(index: number) {
   index += 1;
-  if (pagination.page == 1) {
-    return index;
-  }
-  return pagination.page * pagination.size + index;
+  return (pagination.page - 1) * pagination.size + index;
 }
 
 const onClose = () => {