Merge pull request #636 from crawlab-team/develop

fixed https://github.com/crawlab-team/crawlab/issues/619
This commit is contained in:
Marvin Zhang
2020-03-12 12:17:22 +08:00
committed by GitHub

View File

@@ -582,6 +582,9 @@ export default {
async onSpiderChange (spiderId) {
await this.$store.dispatch('spider/getSpiderData', spiderId)
if (this.spiderForm.type === 'customized' && this.spiderForm.is_scrapy) {
this.isLoading = true
await this.$store.dispatch('spider/getSpiderScrapySpiders', spiderId)
this.isLoading = false
this.$set(this.scheduleForm, 'scrapy_spider', this.spiderForm.spider_names[0])
this.$set(this.scheduleForm, 'scrapy_log_level', 'INFO')
}