summaryrefslogtreecommitdiffstats
path: root/src/main.js
blob: fd310909ece0deec47d45deea3ec4f4f3fb3d047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Axios from 'axios'
import Notifications from 'vue-notification'
import VueHotkey from 'v-hotkey'

Vue.config.productionTip = false

Axios.defaults.headers.common['Authorization'] = store.state.token !== "" && `Token ${store.state.token}`;

Vue.use(Notifications)
Vue.use(VueHotkey)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')