File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,9 @@ export default {
131131 let settings = localstore .getStorage (localstore .axiosSettingType );
132132
133133 if (settings) {
134- if (settings .baseURL ) HTTP .baseURL = settings .baseURL ;
135- if (settings .withCredentials ) HTTP .withCredentials = settings .withCredentials ;
136- if (settings .headers ) HTTP .headers = settings .headers ;
134+ if (settings .baseURL ) HTTP .defaults . baseURL = settings .baseURL ;
135+ if (settings .withCredentials ) HTTP .defaults . withCredentials = settings .withCredentials ;
136+ if (settings .headers ) HTTP .defaults . headers = settings .headers ;
137137 } else {
138138 throw ` settings.baseURL: ${ settings .baseURL } , settings.withCredentials: ${ settings .withCredentials } , settings.headers: ${ settings .headers } is set!` ;
139139 }
You can’t perform that action at this time.
0 commit comments