@luizleon/sf.prefeiturasp.vuecomponents 0.0.57 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/axios/axiosClient.d.ts +2 -2
- package/dist/sf.prefeiturasp.vuecomponents.es.js +5 -5
- package/dist/sf.prefeiturasp.vuecomponents.es.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.js +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/axios/axiosClient.ts +4 -4
- package/src/components/drawer/Drawer.d.ts +1 -1
package/package.json
CHANGED
package/src/axios/axiosClient.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { AppResult } from "../common/appResult";
|
|
|
3
3
|
import Keycloak from "../keycloak";
|
|
4
4
|
|
|
5
5
|
class AxiosClient {
|
|
6
|
-
constructor(keycloak: Keycloak) {
|
|
6
|
+
constructor(keycloak: Keycloak, baseUrl: string) {
|
|
7
7
|
this.keycloak = keycloak;
|
|
8
8
|
this.axios = _axios.create();
|
|
9
|
-
this.axios.defaults.baseURL =
|
|
9
|
+
this.axios.defaults.baseURL = baseUrl;
|
|
10
10
|
this.axios.defaults.headers.common["content-type"] =
|
|
11
11
|
"application/json";
|
|
12
12
|
this.axios.defaults.timeout = 1000 * 60 * 5;
|
|
@@ -201,7 +201,7 @@ class AxiosClient {
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
const UseAxiosClient = (keycloak: Keycloak) =>
|
|
205
|
-
new AxiosClient(keycloak);
|
|
204
|
+
const UseAxiosClient = (keycloak: Keycloak, baseURL: string) =>
|
|
205
|
+
new AxiosClient(keycloak, baseURL);
|
|
206
206
|
|
|
207
207
|
export { AxiosClient, UseAxiosClient };
|