fix: set the default menu team error (halo-dev/console#433)

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/3445/head
Ryan Wang 2022-02-11 15:29:52 +08:00 committed by GitHub
parent 10bf358e33
commit e081656d96
1 changed files with 3 additions and 5 deletions

View File

@ -325,11 +325,9 @@ export default {
handleSetDefaultTeam() { handleSetDefaultTeam() {
this.teams.default.saving = true this.teams.default.saving = true
apiClient.option apiClient.option
.save([ .saveMapView({
{ default_menu_team: this.teams.selected
default_menu_team: this.teams.selected })
}
])
.catch(() => { .catch(() => {
this.teams.default.errored = true this.teams.default.errored = true
}) })