From 28ecf16fe2b576b7bef9bde025999239591b4b3a Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 11 Feb 2022 15:29:52 +0800 Subject: [PATCH] fix: set the default menu team error (#433) Signed-off-by: Ryan Wang --- src/views/interface/MenuList.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/views/interface/MenuList.vue b/src/views/interface/MenuList.vue index 01a773da..9ea9c803 100644 --- a/src/views/interface/MenuList.vue +++ b/src/views/interface/MenuList.vue @@ -325,11 +325,9 @@ export default { handleSetDefaultTeam() { this.teams.default.saving = true apiClient.option - .save([ - { - default_menu_team: this.teams.selected - } - ]) + .saveMapView({ + default_menu_team: this.teams.selected + }) .catch(() => { this.teams.default.errored = true })