Merge pull request #321 from zhangweiii/master

fix Cannot read property length of null when first init
This commit is contained in:
Marvin Zhang
2019-11-27 10:02:21 +08:00
committed by GitHub
4 changed files with 63 additions and 1 deletions

View File

@@ -274,7 +274,7 @@ export default {
// 爬虫列表
request.get('/spiders', {})
.then(response => {
this.spiderList = response.data.data.list
this.spiderList = response.data.data.list || []
})
}
}