|
@@ -1,6 +1,13 @@
|
|
|
import Vue from 'vue'
|
|
|
import ElementUI from 'element-ui'
|
|
|
|
|
|
+import dayjs from 'dayjs'
|
|
|
+import numeral from 'numeral'
|
|
|
+import lodash from 'lodash'
|
|
|
+import qs from 'qs'
|
|
|
+
|
|
|
+import * as constant from '@/constant'
|
|
|
+
|
|
|
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
|
|
import 'default-passive-events'
|
|
|
import 'babel-polyfill'
|
|
@@ -104,6 +111,17 @@ Vue.mixin({
|
|
|
computed: {
|
|
|
selects() {
|
|
|
return store.state.selects
|
|
|
+ },
|
|
|
+ $helpers() {
|
|
|
+ return {
|
|
|
+ dayjs,
|
|
|
+ numeral,
|
|
|
+ lodash,
|
|
|
+ qs,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ $constant() {
|
|
|
+ return constant
|
|
|
}
|
|
|
},
|
|
|
methods: {
|