vue当中设置全局变量的方法

import fn from 'fn'
Vue.prototype.fn = fn;

调用的时候

this.fn.way
原文地址:https://www.cnblogs.com/kugeliu/p/6596011.html