| | |
| | | import VueI18n from 'vue-i18n' |
| | | import zhCN from './lang/locales/zh-CN.json' // 中文语言包 |
| | | import enUS from './lang/locales/en-US.json' // 英文语言包 |
| | | import store from './store' |
| | | |
| | | // import store from './store' |
| | | Vue.use(VueI18n) |
| | | |
| | | const i18n = new VueI18n({ |
| | | locale: 'zh-CN', // 设置默认语言为中文 |
| | | locale: 'en-US', |
| | | messages: { |
| | | 'zh-CN': zhCN, // 注册中文语言包 |
| | | 'en-US': enUS // 注册英文语言包 |
| | | } |
| | | }) |
| | | |
| | | const EventBus = new Vue(); |
| | | Vue.prototype.$bus = EventBus; |
| | | Vue.use(ElementUI); |
| | | |
| | | Vue.config.productionTip = false; |
| | |
| | | Vue.prototype.$message = Message; |
| | | // confirm |
| | | Vue.prototype.$confirm = MessageBox.confirm; |
| | | |
| | | Vue.prototype.$tagList = []; |
| | | new Vue({ |
| | | router, |
| | | i18n, |
| | | store, |
| | | |
| | | render: h => h(App) |
| | | }).$mount('#app'); |