浏览代码

修复bug

zhusiqing 5 年之前
父节点
当前提交
8f0e02b872
共有 1 个文件被更改,包括 3 次插入1 次删除
  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 {