查询默认的语言配置的时候保存cookie

This commit is contained in:
Captain.B 2020-05-14 19:19:21 +08:00
parent c066d99492
commit c474ae5656
1 changed files with 3 additions and 1 deletions

View File

@ -113,9 +113,11 @@
this.$get("language", response => {
language = response.data;
localStorage.setItem(DEFAULT_LANGUAGE, language)
window.location.href = "/"
})
} else {
window.location.href = "/"
}
window.location.href = "/"
});
} else {
return false;