natasha 1 rok pred
rodič
commit
5a391217e9
1 zmenil súbory, kde vykonal 5 pridanie a 3 odobranie
  1. 5 3
      public/ciyun/ciyunindex.html

+ 5 - 3
public/ciyun/ciyunindex.html

@@ -545,9 +545,11 @@
                 type: "post",
                 success: function(res) {
                     let arr = []
-                    res.word_list.forEach(item => {
-                        arr.push(item)
-                    })
+                    if (res.word_list) {
+                        res.word_list.forEach(item => {
+                            arr.push(item)
+                        })
+                    }
                     oldstopWordList = JSON.parse(JSON.stringify(arr))
                     stopWordList = JSON.parse(JSON.stringify(arr))
                     $("#allwordnumber").text(oldstopWordList.length)