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> <script setup>
import { ref, watch } from "vue"; import { ref, watch } from "vue";
import { defineProps, defineEmits } from "vue";
const props = defineProps({ const props = defineProps({
isVisible: { isVisible: {
type: Boolean, type: Boolean,

View File

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

View File

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