Pārlūkot izejas kodu

修改标签bug

ZZJ 3 gadi atpakaļ
vecāks
revīzija
775dc948c0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/views/system/jbdScan/goods/sampleTag.vue

+ 1 - 1
src/views/system/jbdScan/goods/sampleTag.vue

@@ -168,7 +168,7 @@ export default {
             while(xmbhIndex <jcxm.length){
               yp.forEach((item,index)=>{
                 let count = item.jian_ce_xiang_mu_.split(',').length + xmbhIndex
-                for(;xmbhIndex<count;xmbhIndex++){
+                for(;xmbhIndex<count && xmbhIndex < jcxm.length;xmbhIndex++){
                     let x = {
                     yang_pin_ming_che : item.yang_pin_ming_che,
                     yang_pin_bian_hao : item.yang_pin_bian_hao,