mirror of
https://github.com/veops/cmdb.git
synced 2025-08-09 05:19:07 +08:00
feat(ui):i18n (#347)
* feat(acl-ui):i18n * feat(base-ui):i18n * feat(cmdb-ui):i18n
This commit is contained in:
@@ -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 }) {
|
||||
|
Reference in New Issue
Block a user