perf: login也支持国际化

This commit is contained in:
陈劲松
2020-03-12 18:04:04 +08:00
parent 2d4f870274
commit 43d3117b0a
4 changed files with 19 additions and 4 deletions

View File

@@ -382,6 +382,7 @@
changeLocal(lang) {
if (lang != localStorage.getItem("nz-language-" + this.username)) {
localStorage.setItem("nz-language-" + this.username, lang);
localStorage.setItem("nz-language", lang);
this.$i18n.locale = lang;
window.location.reload();
}