local search & fix texts
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
import Cities from '../../components/ui/Cities.vue';
|
||||
import Pagination from '../../components/Pagination.vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { usePrivacyStore } from '../../stores/privacy';
|
||||
|
||||
const privacyStore = usePrivacyStore();
|
||||
const {loading, companies, getCompaniesData, companiesTotal, currentCompaniesPage} = useDirectory();
|
||||
const query = ref('');
|
||||
const selectedTruckType = ref([]);
|
||||
@@ -22,10 +24,11 @@
|
||||
|
||||
const limit = 10;
|
||||
|
||||
onMounted(() => {
|
||||
onMounted( async () => {
|
||||
filterQuery.value.company_type = 'carrier';
|
||||
filterQuery.value.limit = 'elements=' + limit;
|
||||
filterQuery.value.page = "page=0";
|
||||
await privacyStore.getPrivateList();
|
||||
getCompaniesData(filterQuery.value);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user