fix build
This commit is contained in:
parent
b62cb3d717
commit
99d88ca30b
@ -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,
|
||||||
|
|||||||
@ -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[];
|
||||||
}>({
|
}>({
|
||||||
|
|||||||
@ -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 =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user