소스 검색

fix: 添加空检查以防止资产类型处理中的错误

xieyong 2 주 전
부모
커밋
c106bd5591
1개의 변경된 파일과 1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/views/warehouseManagement/statisticalReports/transceiverDetails/transceiver-details.vue

+ 1 - 0
src/views/warehouseManagement/statisticalReports/transceiverDetails/transceiver-details.vue

@@ -624,6 +624,7 @@
         });
       },
       handleAssetType(r) {
+        if(!this.codeList?.length) return '';
         const code = this.codeList.find((item) => item.dictCode == r);
         return code?.dictValue;
       },