@c10t/nice-component-library 0.0.5-beta → 0.0.6-beta
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.
|
@@ -1026,6 +1026,12 @@ class ApiService {
|
|
|
1026
1026
|
getJSON(file) {
|
|
1027
1027
|
return this.http.get(file);
|
|
1028
1028
|
}
|
|
1029
|
+
getBlob(nativeUrl, params, baseUrl) {
|
|
1030
|
+
const url = baseUrl ? (baseUrl + nativeUrl) : this.getFullUrl(nativeUrl);
|
|
1031
|
+
return this.http.get(url, {
|
|
1032
|
+
responseType: 'blob', // Đặt responseType thành 'blob'
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1029
1035
|
post(nativeUrl, obj, options, baseUrl) {
|
|
1030
1036
|
return this.http.post(baseUrl ? (baseUrl + nativeUrl) : this.getFullUrl(nativeUrl), obj, options ? {
|
|
1031
1037
|
headers: options.headers,
|