|
@@ -4,7 +4,6 @@ import 'normalize.css/normalize.css'
|
|
|
|
|
|
import ElementUI from 'element-ui'
|
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
|
|
-import locale from 'element-ui/lib/locale/lang/en'
|
|
|
|
|
|
import '@/styles/index.scss'
|
|
|
|
|
@@ -14,6 +13,7 @@ import router from './router'
|
|
|
|
|
|
import '@/icons'
|
|
|
import '@/permission'
|
|
|
+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({
|