Pārlūkot izejas kodu

自定义类别相关

MaiXinRong 2 gadi atpakaļ
vecāks
revīzija
d0a9b5b866
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      app/service/category_value.js

+ 1 - 0
app/service/category_value.js

@@ -92,6 +92,7 @@ module.exports = app => {
                         let cate = this._.find(tender.category, function (c) { return c.cid === cid; });
                         if (!cate) {
                             cate = {cid: cid};
+                            if (!tender.category) tender.category = [];
                             tender.category.push(cate);
                         }
                         cate.value = v.id;