marvzhang
2020-03-12 12:15:08 +08:00
parent ee8279263d
commit 4ef4aa6707

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')
}