pagination change

This commit is contained in:
Marvin Zhang
2019-06-09 16:51:03 +08:00
parent 0cdf44842f
commit ceba5b86e3
2 changed files with 4 additions and 1 deletions

View File

@@ -553,6 +553,7 @@ class SpiderApi(BaseApi):
'下页',
'next page',
'next',
'>'
]
for tag in sel.iter():
if tag.text is not None and tag.text.lower().strip() in next_page_text_list:

View File

@@ -255,7 +255,9 @@ export default {
.then(response => {
if (response.data.item_selector) {
this.$set(this.spiderForm, 'item_selector', response.data.item_selector)
this.$set(this.spiderForm, 'item_selector_type', 'css')
}
if (response.data.item_selector_type) {
this.$set(this.spiderForm, 'item_selector_type', response.data.item_selector_type)
}
if (response.data.fields && response.data.fields.length) {