File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " laravel-frontend-file-manager" ,
3- "version" : " 3.0.7 " ,
3+ "version" : " 3.0.8 " ,
44 "description" : " File manager for Laravel" ,
55 "keywords" : [
66 " laravel" ,
Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ export default {
132132
133133 if (settings) {
134134 if (settings .baseURL ) HTTP .defaults .baseURL = settings .baseURL ;
135+ if (settings .withCredentials ) HTTP .defaults .withCredentials = settings .withCredentials ;
135136 if (settings .headers ) HTTP .defaults .headers = settings .headers ;
136137 }
137138 },
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import axios from 'axios';
22import localstore from '../mixins/localstore' ;
33
44let settings = localstore . getStorage ( localstore . axiosSettingType ) ;
5- let obj = { } ;
65
76if ( settings ) {
8- if ( settings . baseURL ) obj . baseURL = settings . baseURL ;
9- if ( settings . headers ) obj . headers = settings . headers ;
7+ if ( settings . baseURL ) axios . defaults . baseURL = settings . baseURL ;
8+ if ( settings . withCredentials ) axios . defaults . withCredentials = settings . withCredentials ;
9+ if ( settings . headers ) axios . defaults . headers = settings . headers ;
1010}
1111
1212// set new axios instance
13- export default axios . create ( obj ) ;
13+ export default axios ;
You can’t perform that action at this time.
0 commit comments