Просмотр исходного кода

批量求购发布确认页 截止日期bug处理

liusw 8 лет назад
Родитель
Сommit
82e8deec59
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      components/applyPurchase/BatchPublish.vue

+ 3 - 0
components/applyPurchase/BatchPublish.vue

@@ -175,6 +175,9 @@
     return str
   }
   let formatDate = function (date, fmt) {
+    if (!date) {
+      return null
+    }
     if (typeof date === 'string') {
       date = new Date(Date.parse(date.replace(/-/g, '/')))
     }