You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

6 years ago
import Vue from 'vue'
import App from './App.vue'
5 years ago
import Element from 'element-ui'
4 years ago
import 'element-ui/lib/theme-chalk/index.css'
5 years ago
import meta from 'vue-meta'
import dayjs from 'dayjs'
import Cookies from 'js-cookie'
6 years ago
import router from './router/index'
4 years ago
5 years ago
import api from './api'
6 years ago
import store from './store/index'
5 years ago
import '@/assets/styles/index.scss' // global css
5 years ago
import '@/utils/plugins'
4 years ago
import './assets/icons' // icon
6 years ago
// 全局组件自动注册
import '@/components/autoRegister'
5 years ago
import VueClipboard from 'vue-clipboard2'
4 years ago
import Process from '@/components/HandleProcess/process'
4 years ago
6 years ago
Vue.prototype.$api = api
Vue.prototype.$dayjs = dayjs
5 years ago
Vue.prototype.$store = store
5 years ago
Vue.prototype.$cookies = Cookies
5 years ago
Vue.prototype.msgSuccess = function(msg) {
4 years ago
this.$message({showClose: true, message: msg, type: 'success'})
5 years ago
}
Vue.prototype.msgError = function(msg) {
4 years ago
this.$message({showClose: true, message: msg, type: 'error'})
5 years ago
}
Vue.prototype.msgWarning = function(msg) {
4 years ago
this.$message({showClose: true, message: msg, type: 'warning'})
5 years ago
}
Vue.prototype.msgInfo = function(msg) {
this.$message.info(msg)
}
4 years ago
Vue.prototype.$process = Process
5 years ago
Vue.use(VueClipboard)
5 years ago
Vue.use(meta)
Vue.use(Element, {size: 'small', zIndex: 3000})
6 years ago
5 years ago
Vue.config.productionTip = false
6 years ago
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')