From 29046f69cfc0e36a6566cbeee731c5a7797c4a1d Mon Sep 17 00:00:00 2001 From: Halo Dev Bot <87291978+halo-dev-bot@users.noreply.github.com> Date: Fri, 2 Sep 2022 00:05:26 +0800 Subject: [PATCH] fix: failed to set journal page size option (#602) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 源 <73240868+JustinLiang522@users.noreply.github.com> --- src/views/sheet/independent/JournalList.vue | 6 +++--- src/views/sheet/independent/LinkList.vue | 6 +++--- src/views/sheet/independent/PhotoList.vue | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/sheet/independent/JournalList.vue b/src/views/sheet/independent/JournalList.vue index 75867df0..651a435c 100644 --- a/src/views/sheet/independent/JournalList.vue +++ b/src/views/sheet/independent/JournalList.vue @@ -229,7 +229,7 @@ export default { }, optionModal: { visible: false, - options: [] + options: {} } } }, @@ -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 }) }, @@ -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 diff --git a/src/views/sheet/independent/LinkList.vue b/src/views/sheet/independent/LinkList.vue index f1531776..762316a1 100644 --- a/src/views/sheet/independent/LinkList.vue +++ b/src/views/sheet/independent/LinkList.vue @@ -225,7 +225,7 @@ export default { }, optionsModal: { visible: false, - data: [] + data: {} }, teams: [] } @@ -270,7 +270,7 @@ export default { }) }, handleListOptions() { - apiClient.option.list().then(response => { + apiClient.option.listAsMapViewByKeys(['links_title']).then(response => { this.optionsModal.data = response.data }) }, @@ -331,7 +331,7 @@ export default { }, handleSaveOptions() { apiClient.option - .save(this.optionsModal.data) + .saveMapView(this.optionsModal.data) .then(() => { this.$message.success('保存成功!') this.optionsModal.visible = false diff --git a/src/views/sheet/independent/PhotoList.vue b/src/views/sheet/independent/PhotoList.vue index bbad77bd..2509e525 100644 --- a/src/views/sheet/independent/PhotoList.vue +++ b/src/views/sheet/independent/PhotoList.vue @@ -229,7 +229,7 @@ export default { formVisible: false, teams: [], - options: [], + options: {}, optionFormVisible: false } }, @@ -442,14 +442,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