39 lines
936 B
JavaScript
39 lines
936 B
JavaScript
import '@babel/polyfill'
|
|
import promise from 'es6-promise'
|
|
promise.polyfill()
|
|
import Vue from 'vue'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import store from './store'
|
|
|
|
// import './perms' // 动态权限控制
|
|
import Vant from 'vant';
|
|
import 'vant/lib/index.css';
|
|
// 全局样式
|
|
import '@/assets/css/global.css'
|
|
import '@/assets/css/basic.less'
|
|
import '@/assets/css/base.less'
|
|
import 'lib-flexible'
|
|
import 'amfe-flexible'
|
|
import inputDirective from './directive/input/install'
|
|
import Regexp from '@/utils/Regexp'
|
|
import '@/permission'
|
|
Vue.prototype.$echarts = window.echarts
|
|
|
|
Vue.use(inputDirective);
|
|
Vue.use(Vant);
|
|
Vue.prototype.Regexp = Regexp
|
|
Vue.prototype.$store = store
|
|
// Vue.prototype.$picBaseUrl = picBaseUrl
|
|
// Vue.prototype.$picCachingUrl = picCachingUrl
|
|
const bus = new Vue()
|
|
Vue.prototype.$bus = bus
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
new Vue({
|
|
router,
|
|
store,
|
|
render: h => h(App)
|
|
}).$mount('#app')
|