diff --git a/src/components/common/VnLocation.vue b/src/components/common/VnLocation.vue index 014b84b31..3ede24274 100644 --- a/src/components/common/VnLocation.vue +++ b/src/components/common/VnLocation.vue @@ -70,6 +70,9 @@ const handleModelValue = (data) => { [], }, optionLabel: { - type: [String], + type: [String, Function], default: 'name', }, optionValue: { diff --git a/src/pages/Worker/WorkerList.vue b/src/pages/Worker/WorkerList.vue index 0b784b993..8e02e59a4 100644 --- a/src/pages/Worker/WorkerList.vue +++ b/src/pages/Worker/WorkerList.vue @@ -196,7 +196,7 @@ async function autofillBic(worker) { prefix="workerSearch" :array-data-props="{ url: 'Workers/filter', - order: ['id DESC'], + order: 'id DESC', }" >