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.
|
|
|
import 'babel-polyfill' //兼容IE9
|
|
|
|
import Vue from 'vue'
|
|
|
|
import ElementUI from 'element-ui'
|
|
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
|
|
|
// import '@/styles/index.scss' // global css
|
|
|
|
import App from './App.vue'
|
|
|
|
import router from './router'
|
|
|
|
import store from './store'
|
|
|
|
import md5 from 'js-md5'; //md5 加密
|
|
|
|
import * as echarts from 'echarts';
|
|
|
|
import '@/permission' // 权限控制
|
|
|
|
Vue.prototype.$md5 = md5
|
|
|
|
Vue.prototype.$echarts = echarts
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
Vue.use(ElementUI)
|
|
|
|
|
|
|
|
var template = '001'
|
|
|
|
Vue.prototype.$template = template
|
|
|
|
require("../public/template/" + template + '/styles/index.scss?v=1.0')
|
|
|
|
|
|
|
|
//混入动态获取css与img的方法
|
|
|
|
Vue.mixin({
|
|
|
|
methods: {
|
|
|
|
_getCss: function (filePath, fileName) {
|
|
|
|
return require("../public/template/" + template + '/' + filePath + '/' + fileName + '/index.scss?v=1.0')
|
|
|
|
},
|
|
|
|
_getCss2: function (filePath, fileName) {
|
|
|
|
return require("../public/template/" + template + '/' + filePath + '/' + fileName + '?v=1.0')
|
|
|
|
},
|
|
|
|
_getImage: function(filePath, fileName) {
|
|
|
|
return require("../public/template/" + template + '/img/' + filePath + '/' + fileName)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
new Vue({
|
|
|
|
router,
|
|
|
|
store,
|
|
|
|
render: h => h(App)
|
|
|
|
}).$mount('#app')
|