中国食品行业工业互联网产业联盟官网
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.

40 lines
1.2 KiB

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'
4 years ago
import md5 from 'js-md5'; //md5 加密
import * as echarts from 'echarts';
4 years ago
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')