Browse Source

修复bug

zhusiqing 5 năm trước cách đây
mục cha
commit
8f0e02b872
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      server.js

+ 3 - 1
server.js

@@ -178,7 +178,9 @@ router.post('/reviews', ctx => {
     if (STATIC_DATA.indexOf(el) !== -1) {
       return true
     }
-    noExist.push(el)
+    if (el) {
+      noExist.push(el)
+    }
     return false
   })
   try {