blob: 5ab733a2d51db0823b99ac6cf90535f4ee2681c4 (
plain) (
tree)
|
|
import {createApp} from 'vue';
import axios from 'axios';
const tokenInStorage = localStorage.getItem('token');
if (tokenInStorage) {
axios.defaults.headers.common['Authorization'] = `Bearer ${tokenInStorage}`;
}
import App from './App.vue';
import router from './router';
import store from './store';
import './assets/bootstrap.scss';
import 'bootstrap';
createApp(App)
.use(store)
.use(router)
.mount('#app');
|