Эх сурвалжийг харах

fix: 扫描左侧列表样式问题

zhangjie 10 сар өмнө
parent
commit
08943bc199

+ 2 - 1
src/assets/styles/pages.scss

@@ -419,6 +419,7 @@
 
   .scan-body {
     flex-grow: 2;
+    overflow: hidden;
 
     display: flex;
     justify-content: space-between;
@@ -452,7 +453,7 @@
 
       &-body {
         flex-grow: 2;
-        overflow: hidden;
+        overflow: auto;
         background-color: #fff;
         border-top-left-radius: $--border-radius;
         border-top-right-radius: $--border-radius;

+ 2 - 2
src/modules/client/views/ScanPaper.vue

@@ -530,8 +530,8 @@ export default {
       }
 
       prevIndex = Math.max(
-        0,
-        Math.min(prevIndex, this.scanStageList.length - 1)
+        1,
+        Math.min(prevIndex + 1, this.scanStageList.length)
       );
 
       this.scanStageList.splice(prevIndex, 0, {