Merge branch 'master' of github.com:jumpserver/lina

This commit is contained in:
ibuler
2020-05-11 12:06:50 +08:00
2 changed files with 2 additions and 1 deletions

View File

@@ -11,7 +11,6 @@ import CustomActionsFormatter from './CustomActionsFormatter'
import DeleteActionFormatter from './DeleteActionFormatter'
import DateFormatter from './DateFormatter'
export default {
DetailFormatter,
DisplayFormatter,

View File

@@ -65,10 +65,12 @@ export default {
},
changeLangToZH() {
this.$i18n.locale = 'cn'
localStorage.setItem('lang', 'cn')
this.$cookie.set(this.LANG_COOKIE_NAME, 'zh-hans')
},
changeLangToEnglish() {
this.$i18n.locale = 'en'
localStorage.setItem('lang', 'en')
this.$cookie.set(this.LANG_COOKIE_NAME, 'en')
}
}