This commit is contained in:
Pan 2018-10-08 18:26:39 +08:00
parent 65ac600b54
commit 27725ac9d7
2 changed files with 8 additions and 0 deletions

View File

@ -56,6 +56,7 @@
"simplemde": "1.11.2", "simplemde": "1.11.2",
"sortablejs": "1.7.0", "sortablejs": "1.7.0",
"vue": "2.5.17", "vue": "2.5.17",
"vue-analytics": "5.16.0",
"vue-count-to": "1.0.13", "vue-count-to": "1.0.13",
"vue-i18n": "7.3.2", "vue-i18n": "7.3.2",
"vue-router": "3.0.1", "vue-router": "3.0.1",

View File

@ -21,6 +21,13 @@ import './mock' // simulation data
import * as filters from './filters' // global filters import * as filters from './filters' // global filters
import VueAnalytics from 'vue-analytics'
Vue.use(VueAnalytics, {
id: 'UA-109340118-1',
router
})
Vue.use(Element, { Vue.use(Element, {
size: Cookies.get('size') || 'medium', // set element-ui default size size: Cookies.get('size') || 'medium', // set element-ui default size
i18n: (key, value) => i18n.t(key, value) i18n: (key, value) => i18n.t(key, value)