@@ -95,7 +95,8 @@ Object.keys(filters).forEach(key => {
Vue.config.productionTip = false
import * as globalFunction from './utils/globalFunction.js'
-Vue.use(globalFunction)
+
+Vue.use(globalFunction.EchartfontSize)
new Vue({
el: '#app',
router,
@@ -1,4 +1,4 @@
-export default {
+export const EchartfontSize = {
install(Vue) {
Vue.prototype.EchartfontSize = (res) => {
const clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth