zhaoke 1 yıl önce
ebeveyn
işleme
555ec7d175

+ 2 - 2
src/views/newBagDetails/components/baggageMessage.vue

@@ -82,9 +82,9 @@ export default {
               const popNums = [100, 101, 102].map(item => item.toString())
               const target = dataObjectId.substring(len - 3, len)
               const place = popNums.includes(target) ? '(国航)' : '(广州)'
-              item.readTime = item.readTime.replace('T', ' ') + place
+              item.readTime = item.readTime ?? item.readTime.replace('T', ' ') + place
             } else {
-              item.readTime = item.readTime.replace('T', ' ') + '(广州)'
+              item.readTime = item.readTime ?? item.readTime.replace('T', ' ') + '(广州)'
             }
           })
           this.messageList = messageDatas