소스 검색

修改标签bug

ZZJ 3 년 전
부모
커밋
775dc948c0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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,