优先调整xpath顺序

This commit is contained in:
marvzhang
2019-12-04 13:57:27 +08:00
parent 82c6b80063
commit be4a5f6667
5 changed files with 43 additions and 31 deletions

View File

@@ -223,7 +223,7 @@ export default {
}
if (this.fields.length === 0) {
this.fields.push({
css: 'body',
xpath: '//body',
next_stage: ''
})
}
@@ -233,7 +233,7 @@ export default {
if (row.name === this.fields[i].name) {
this.fields.splice(i + 1, 0, {
name: `field_${Math.floor(new Date().getTime()).toString()}`,
css: 'body',
xpath: '//body',
next_stage: ''
})
break