Fix for CORS errors for vehicles that have body styles with a non-alphanumeric value in them.
This commit is contained in:
parent
6e3c320bd1
commit
7924a86bca
1 changed files with 2 additions and 1 deletions
|
|
@ -1352,10 +1352,11 @@ export const useMainStore = defineStore({
|
||||||
async setVehicle() {
|
async setVehicle() {
|
||||||
const encodedMake = encodeURIComponent(this.order.vehicle.make);
|
const encodedMake = encodeURIComponent(this.order.vehicle.make);
|
||||||
const encodedModel = encodeURIComponent(this.order.vehicle.model);
|
const encodedModel = encodeURIComponent(this.order.vehicle.model);
|
||||||
|
const encodedStyle = encodeURIComponent(this.order.vehicle.style);
|
||||||
const response = await globalMethods
|
const response = await globalMethods
|
||||||
.callHttpClient({
|
.callHttpClient({
|
||||||
method: endpoints.GetVehicle.method,
|
method: endpoints.GetVehicle.method,
|
||||||
endpoint: `${endpoints.GetVehicle.url}/${this.order.vehicle.year}/${encodedMake}/${encodedModel}/${this.order.vehicle.style}`,
|
endpoint: `${endpoints.GetVehicle.url}/${this.order.vehicle.year}/${encodedMake}/${encodedModel}/${encodedStyle}`,
|
||||||
payload: {}
|
payload: {}
|
||||||
});
|
});
|
||||||
this.updateVehicle(response.data);
|
this.updateVehicle(response.data);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue