Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
fix: failed to set journal page size option (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyLiang522 authored Sep 1, 2022
1 parent bbd810d commit 3bdecc3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/views/sheet/independent/JournalList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export default {
},
optionModal: {
visible: false,
options: []
options: {}
}
}
},
Expand Down Expand Up @@ -282,7 +282,7 @@ export default {
}
},
handleListOptions() {
apiClient.option.list().then(response => {
apiClient.option.listAsMapViewByKeys(['journals_page_size', 'journals_title']).then(response => {
this.optionModal.options = response.data
})
},
Expand Down Expand Up @@ -391,7 +391,7 @@ export default {
handleSaveOptions() {
apiClient.option
.save(this.optionModal.options)
.saveMapView(this.optionModal.options)
.then(() => {
this.$message.success('保存成功!')
this.optionModal.visible = false
Expand Down
6 changes: 3 additions & 3 deletions src/views/sheet/independent/LinkList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default {
},
optionsModal: {
visible: false,
data: []
data: {}
},
teams: [],
linkTeam: []
Expand Down Expand Up @@ -265,7 +265,7 @@ export default {
})
},
handleListOptions() {
apiClient.option.list().then(response => {
apiClient.option.listAsMapViewByKeys(['links_title']).then(response => {
this.optionsModal.data = response.data
})
},
Expand Down Expand Up @@ -367,7 +367,7 @@ export default {
},
handleSaveOptions() {
apiClient.option
.save(this.optionsModal.data)
.saveMapView(this.optionsModal.data)
.then(() => {
this.$message.success('保存成功!')
this.optionsModal.visible = false
Expand Down
6 changes: 3 additions & 3 deletions src/views/sheet/independent/PhotoList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export default {
formVisible: false,
teams: [],
options: [],
options: {},
optionFormVisible: false
}
},
Expand Down Expand Up @@ -438,14 +438,14 @@ export default {
},
handleListOptions() {
apiClient.option.list().then(response => {
apiClient.option.listAsMapViewByKeys(['photos_page_size', 'photos_title']).then(response => {
this.options = response.data
})
},
handleSaveOptions() {
apiClient.option
.save(this.options)
.saveMapView(this.options)
.then(() => {
this.$message.success('保存成功!')
this.optionFormVisible = false
Expand Down

0 comments on commit 3bdecc3

Please sign in to comment.