main.js
import filters from './utils/filters.js'
Object.keys(filters).forEach(k => Vue.filter(k, filters[k]))
utils/filters.js
// 商户管理列表,商户类型
exports.accountType = (str) => {
switch (str) {
case 'E':
str = '企业'
break
case 'C':
str = '个人'
break
default:
str
}
return str
}
网友评论