|
@@ -3,8 +3,8 @@ import VueRouter from 'vue-router'
|
|
|
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
|
|
|
|
|
import ElementUI from 'element-ui'
|
|
|
-import 'element-ui/lib/theme-chalk/index.css'
|
|
|
-import UmyUi from 'umy-ui'
|
|
|
+import 'element-ui/lib/theme-chalk/index.css'
|
|
|
+import UmyUi from 'umy-ui'
|
|
|
import 'umy-ui/lib/theme-chalk/index.css';// 引入样式
|
|
|
// const ElementUI = require('element-ui')
|
|
|
// require('element-ui/lib/theme-chalk/index.css')
|
|
@@ -59,14 +59,14 @@ Vue.use(VueRouter)
|
|
|
Vue.use(pageCount)
|
|
|
Vue.use(ElementUI, {
|
|
|
i18n: (key, value) => i18n.t(key, value)
|
|
|
-})
|
|
|
+})
|
|
|
Vue.use(UmyUi);
|
|
|
// register global utility filters
|
|
|
Object.keys(filters).forEach(key => {
|
|
|
Vue.filter(key, filters[key])
|
|
|
})
|
|
|
|
|
|
-// import echarts from 'echarts'
|
|
|
+// import echarts from 'echarts'
|
|
|
import * as echarts from 'echarts'
|
|
|
Vue.use(echarts)
|
|
|
// Vue.prototype.$echarts = echarts
|
|
@@ -90,4 +90,11 @@ Vue.directive('loadmore', {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-})
|
|
|
+})
|
|
|
+
|
|
|
+const DOMAIN = document.querySelector("html").getAttribute("domain");
|
|
|
+// 获取html标签的domain属性值
|
|
|
+if (DOMAIN) {
|
|
|
+ Vue.prototype.$DOMAIN = `${DOMAIN}`;
|
|
|
+ // 将$domain设置为vue全局变量
|
|
|
+}
|