Admin.UI/src/main.js

(完整代码) 911B

// 浏览器兼容性
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/styles/index.scss'
import '@/mixin'
import '@/directive'
import lodash from 'lodash'
import i18n from './lang' // 国际化
import store from './store'
import router from './router'
import App from './App.vue'
import MyContainer from '@/components/my-container'
import MyPagination from '@/components/my-pagination'

// 全局组件注册
Vue.component('MyContainer', MyContainer)
Vue.component('MyPagination', MyPagination)

// 组件尺寸和多语言
Vue.use(ElementUI, {
  size: 'mini', // large / medium / small / mini
  i18n: (key, value) => i18n.t(key, value)
})

Vue.config.productionTip = false
Vue.prototype.$_ = lodash

new Vue({
  el: '#app',
  router,
  store,
  i18n,
  render: h => h(App)
})

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。