Browse Source

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

liusw 7 years ago
parent
commit
82e8deec59
1 changed files with 3 additions and 0 deletions
  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, '/')))
     }