fix build
This commit is contained in:
parent
b62cb3d717
commit
99d88ca30b
@ -185,7 +185,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, watch } from "vue";
|
||||
|
||||
import { defineProps, defineEmits } from "vue";
|
||||
const props = defineProps({
|
||||
isVisible: {
|
||||
type: Boolean,
|
||||
|
||||
@ -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[];
|
||||
}>({
|
||||
|
||||
@ -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 =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user