mirror of https://github.com/halo-dev/halo
fix: set the default menu team error (halo-dev/console#433)
Signed-off-by: Ryan Wang <i@ryanc.cc>pull/3445/head
parent
10bf358e33
commit
e081656d96
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue