fix build

This commit is contained in:
Nyavokevin 2025-10-21 12:44:12 +03:00
parent b62cb3d717
commit 99d88ca30b
3 changed files with 5 additions and 10 deletions

View File

@ -185,7 +185,7 @@
<script setup>
import { ref, watch } from "vue";
import { defineProps, defineEmits } from "vue";
const props = defineProps({
isVisible: {
type: Boolean,

View File

@ -188,7 +188,7 @@ export const ClientLocationService = {
/**
* Search client locations by name, address, or city
*/
async getClientLocations(query: string): Promise<ClientLocation[]> {
async getClientLocations(query: number): Promise<ClientLocation[]> {
const response = await request<{
data: ClientLocation[];
}>({

View File

@ -132,14 +132,9 @@ export const useClientLocationStore = defineStore("clientLocation", () => {
setError(null);
try {
const response = await ClientLocationService.getClientLocations(
clientId,
params
);
setClientLocations(response.data);
if (response.meta) {
setPagination(response.meta);
}
const response = await ClientLocationService.getClientLocations(clientId);
setClientLocations(response);
return response;
} catch (err: any) {
const errorMessage =