|
@@ -4,7 +4,6 @@ import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
|
|
|
|
|
import ElementUI from 'element-ui'
|
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
|
|
-import locale from 'element-ui/lib/locale/lang/en' // lang i18n
|
|
|
|
|
|
import '@/styles/index.scss' // global css
|
|
|
|
|
@@ -14,6 +13,7 @@ import router from './router'
|
|
|
|
|
|
import '@/icons' // icon
|
|
|
import '@/permission' // permission control
|
|
|
+import * as filters from './filters'
|
|
|
|
|
|
/**
|
|
|
* If you don't want to use mock-server
|
|
@@ -30,6 +30,11 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
|
|
|
Vue.use(ElementUI)
|
|
|
|
|
|
+// 注册全局过滤器
|
|
|
+Object.keys(filters).forEach(key => {
|
|
|
+ Vue.filter(key, filters[key])
|
|
|
+})
|
|
|
+
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
new Vue({
|