mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-24 16:13:54 +08:00
fix: 修复element组件多语言切换不生效的问题
This commit is contained in:
@@ -6,6 +6,7 @@ import App from './App.vue';
|
||||
import router from './router';
|
||||
import store from './store';
|
||||
import i18n from './i18n';
|
||||
import locale from 'element-ui/lib/locale'
|
||||
import './styles/global.scss';
|
||||
import { register as registerServiceWorker } from './registerServiceWorker';
|
||||
import featureManager from './utils/featureManager';
|
||||
@@ -14,6 +15,7 @@ import featureManager from './utils/featureManager';
|
||||
Vue.prototype.$eventBus = new Vue();
|
||||
|
||||
Vue.use(ElementUI);
|
||||
locale.i18n((key, value) => i18n.t(key, value))
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user