mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-13 11:31:41 +00:00
31 lines
669 B
JavaScript
31 lines
669 B
JavaScript
import './styles/hljs-shisutakia-theme.scss'
|
|
|
|
import Vue from 'vue'
|
|
import {router} from './router'
|
|
import Main from '../src/Main.vue'
|
|
import {store} from './store/index';
|
|
import Axios from 'axios';
|
|
import './utils/clickOutside';
|
|
import vueHeadful from 'vue-headful';
|
|
import Clipboard from 'v-clipboard';
|
|
|
|
Vue.component('vue-headful', vueHeadful);
|
|
Vue.use(Clipboard)
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
const token = localStorage.getItem('hauthid');
|
|
Vue.prototype.$http = Axios;
|
|
|
|
if (token) {
|
|
Vue.prototype.$http.defaults.headers.common['authorization'] = token;
|
|
}
|
|
|
|
export const bus = new Vue();
|
|
|
|
|
|
new Vue({
|
|
store,
|
|
router,
|
|
render: h => h(Main)
|
|
}).$mount('#app')
|