mirror of https://github.com/halo-dev/halo-admin
fix: failed to set journal page size option (#601)
parent
bbd810d308
commit
3bdecc30dd
|
@ -229,7 +229,7 @@ export default {
|
||||||
},
|
},
|
||||||
optionModal: {
|
optionModal: {
|
||||||
visible: false,
|
visible: false,
|
||||||
options: []
|
options: {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -282,7 +282,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleListOptions() {
|
handleListOptions() {
|
||||||
apiClient.option.list().then(response => {
|
apiClient.option.listAsMapViewByKeys(['journals_page_size', 'journals_title']).then(response => {
|
||||||
this.optionModal.options = response.data
|
this.optionModal.options = response.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -391,7 +391,7 @@ export default {
|
||||||
|
|
||||||
handleSaveOptions() {
|
handleSaveOptions() {
|
||||||
apiClient.option
|
apiClient.option
|
||||||
.save(this.optionModal.options)
|
.saveMapView(this.optionModal.options)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$message.success('保存成功!')
|
this.$message.success('保存成功!')
|
||||||
this.optionModal.visible = false
|
this.optionModal.visible = false
|
||||||
|
|
|
@ -143,7 +143,7 @@ export default {
|
||||||
},
|
},
|
||||||
optionsModal: {
|
optionsModal: {
|
||||||
visible: false,
|
visible: false,
|
||||||
data: []
|
data: {}
|
||||||
},
|
},
|
||||||
teams: [],
|
teams: [],
|
||||||
linkTeam: []
|
linkTeam: []
|
||||||
|
@ -265,7 +265,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleListOptions() {
|
handleListOptions() {
|
||||||
apiClient.option.list().then(response => {
|
apiClient.option.listAsMapViewByKeys(['links_title']).then(response => {
|
||||||
this.optionsModal.data = response.data
|
this.optionsModal.data = response.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -367,7 +367,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleSaveOptions() {
|
handleSaveOptions() {
|
||||||
apiClient.option
|
apiClient.option
|
||||||
.save(this.optionsModal.data)
|
.saveMapView(this.optionsModal.data)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$message.success('保存成功!')
|
this.$message.success('保存成功!')
|
||||||
this.optionsModal.visible = false
|
this.optionsModal.visible = false
|
||||||
|
|
|
@ -225,7 +225,7 @@ export default {
|
||||||
formVisible: false,
|
formVisible: false,
|
||||||
|
|
||||||
teams: [],
|
teams: [],
|
||||||
options: [],
|
options: {},
|
||||||
optionFormVisible: false
|
optionFormVisible: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -438,14 +438,14 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
handleListOptions() {
|
handleListOptions() {
|
||||||
apiClient.option.list().then(response => {
|
apiClient.option.listAsMapViewByKeys(['photos_page_size', 'photos_title']).then(response => {
|
||||||
this.options = response.data
|
this.options = response.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSaveOptions() {
|
handleSaveOptions() {
|
||||||
apiClient.option
|
apiClient.option
|
||||||
.save(this.options)
|
.saveMapView(this.options)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$message.success('保存成功!')
|
this.$message.success('保存成功!')
|
||||||
this.optionFormVisible = false
|
this.optionFormVisible = false
|
||||||
|
|
Loading…
Reference in New Issue