feat(ui):i18n (#347)

* feat(acl-ui):i18n

* feat(base-ui):i18n

* feat(cmdb-ui):i18n
This commit is contained in:
wang-liang0615
2024-01-02 17:53:07 +08:00
committed by GitHub
parent ace160ae19
commit e429ad59ff
178 changed files with 21927 additions and 19433 deletions

View File

@@ -24,6 +24,7 @@ const store = new Vuex.Store({
windowWidth: 800,
windowHeight: 600,
currentTime: 0,
locale: 'zh'
},
mutations: {
SET_WINDOW_SIZE(state, { width, height }) {
@@ -33,6 +34,10 @@ const store = new Vuex.Store({
SET_TIME: (state, time) => {
state.currentTime = time
},
SET_LOCALE: (state, locale) => {
state.locale = locale
localStorage.setItem('ops_locale', locale)
}
},
actions: {
setWindowSize({ commit }) {