halo-admin/src/main.js

34 lines
648 B
JavaScript
Raw Normal View History

2019-03-20 12:22:52 +00:00
import '@babel/polyfill'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/'
2019-03-28 17:22:30 +00:00
import './logger'
2019-03-18 16:35:13 +00:00
2019-03-20 12:22:52 +00:00
import './core/use'
import bootstrap from './core/bootstrap'
// import '@/permission' // permission control
import '@/utils/filter' // global filter
2019-04-05 17:03:01 +00:00
import animated from 'animate.css'
2019-03-20 12:22:52 +00:00
Vue.config.productionTip = false
2019-04-09 08:36:12 +00:00
router.beforeEach((to, from, next) => {
if (to.meta.title) {
2019-04-09 09:01:29 +00:00
document.title = to.meta.title + ' | Halo Dashboard'
2019-04-09 08:36:12 +00:00
}
next()
})
2019-03-28 17:22:30 +00:00
Vue.use(router)
2019-04-05 17:03:01 +00:00
Vue.use(animated)
2019-03-18 16:35:13 +00:00
new Vue({
router,
store,
2019-03-21 07:31:53 +00:00
created() {
2019-03-20 12:22:52 +00:00
bootstrap()
},
2019-03-18 16:35:13 +00:00
render: h => h(App)
2019-03-20 12:22:52 +00:00
}).$mount('#app')