From 5d4a0926f4e8fbbc15ba15d4054001cacf630b73 Mon Sep 17 00:00:00 2001 From: li-guang <153605324@qq.com> Date: Tue, 05 Jan 2021 18:21:56 +0800 Subject: [PATCH] 盘点,修改个人信息,跟进记录图片预览 --- hive-app/main.js | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/hive-app/main.js b/hive-app/main.js index 692e40e..dbbbec2 100644 --- a/hive-app/main.js +++ b/hive-app/main.js @@ -3,10 +3,22 @@ import httpUtils from './common/jssdk/httpUtils.js' import utils from './common/jssdk/utils.js' import toast from './common/jssdk/toast.js' +import filters from './common/jssdk/filters.js' + +import noRecord from './components/noRecord/index'; Vue.prototype.$httpUtils = httpUtils Vue.prototype.$utils = utils Vue.prototype.$toast = toast +Vue.prototype.$filters = filters + +// 注册全局过滤器 +Object.keys(filters).map(v => { + Vue.filter(v, filters[v]) +}) + +// 注册全局组件 +Vue.component('noRecord', noRecord); Vue.config.productionTip = false -- Gitblit v1.9.1