|
@@ -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)
|