release v2.0.0 #4

Merged
crimsen merged 481 commits from develop into master 2024-01-18 15:15:08 +00:00
1 changed files with 2 additions and 3 deletions
Showing only changes of commit dc0107bcc9 - Show all commits

View File

@ -1,6 +1,5 @@
import axios, { AxiosInstance } from 'axios';
import { boot } from 'quasar/wrappers';
import { UserStateInterface } from 'src/plugins/user/store/user';
import config from '../config';
import { Store } from 'vuex';
@ -16,9 +15,9 @@ export default boot<Store<any>>(({ Vue, store }) => {
axios.defaults.baseURL = config.baseURL;
axios.interceptors.request.use(config => {
const session: Session = store.getters['user/session'];
const session: FG.Session = store.getters['user/session'];
if (session) {
config.headers['Authorization'] = 'Token ' + session.token;
config.headers = {'Authorization': 'Token ' + session.token};
}
return config;
});