isv-robot 2 년 전
부모
커밋
2f3a2ac0bf
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 1
      src/main.js
  2. 1 1
      src/utils/globalFunction.js

+ 2 - 1
src/main.js

@@ -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 - 1
src/utils/globalFunction.js

@@ -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