fixes: loads search & locations load
This commit is contained in:
@@ -302,11 +302,11 @@ export const useCompanyStore = defineStore('company', () => {
|
||||
}
|
||||
|
||||
const getLocationsLoads = async(type) => {
|
||||
console.log(type);
|
||||
// console.log(type);
|
||||
let locationsType = (type === 'loading') ? locationsLoad.value : locationsDowload.value;
|
||||
console.log(locationsType);
|
||||
// console.log(locationsType);
|
||||
if(locationsType.length <= 0) {
|
||||
const filterStr = "?company="+ localStorage.getItem('id') + '&$limit=100';
|
||||
const filterStr = "?company="+ localStorage.getItem('id') + '&elements=100';
|
||||
const respBoth = await getLocations(filterStr + '&type=' + 'both');
|
||||
const resp = await getLocations(filterStr + '&type=' + type);
|
||||
if(resp !== null && resp.total > 0) {
|
||||
|
||||
Reference in New Issue
Block a user