全局方法.js中引入:
import * as _filters from '../assets/script/filter'
Objext.keys(_filters).forEach(key=>Vue.filter(key,_filters[key]));
全局方法.js中引入:
import * as _filters from '../assets/script/filter'
Objext.keys(_filters).forEach(key=>Vue.filter(key,_filters[key]));