加入settings.py同步

This commit is contained in:
marvzhang
2020-02-17 11:15:16 +08:00
parent a9277f3412
commit dec566d1e5
14 changed files with 154 additions and 334 deletions

View File

@@ -244,7 +244,11 @@ export default {
this.activeParamIndex = index
this.onOpenDialog()
},
onSave () {
async onSave () {
const res = await this.$store.dispatch('spider/saveSpiderScrapySettings', this.$route.params.id)
if (!res.data.error) {
this.$message.success(this.$t('Saved successfully'))
}
},
onAdd () {
const data = JSON.parse(JSON.stringify(this.spiderScrapySettings))