mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
修复可配置爬虫列表前端不生效问题
This commit is contained in:
@@ -815,18 +815,14 @@ ${f.css || f.xpath} ${f.attr ? ('(' + f.attr + ')') : ''} ${f.next_stage ? (' --
|
||||
}
|
||||
},
|
||||
isList (stage) {
|
||||
return !!stage.list_css || !!stage.list_xpath
|
||||
return !!stage.is_list
|
||||
},
|
||||
onCheckIsList (value, stage) {
|
||||
stage.is_list = value
|
||||
if (value) {
|
||||
this.$st.sendEv('爬虫详情', '配置', '勾选列表页')
|
||||
if (!stage.list_css && !stage.list_xpath) {
|
||||
stage.list_xpath = '//body'
|
||||
}
|
||||
} else {
|
||||
this.$st.sendEv('爬虫详情', '配置', '取消勾选列表页')
|
||||
stage.list_css = ''
|
||||
stage.list_xpath = ''
|
||||
}
|
||||
},
|
||||
onClickStageList ($event, stage, type) {
|
||||
|
||||
Reference in New Issue
Block a user