Преглед на файлове

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;
       },