🐛 fix (api): correct type code parameter name in api requests

This commit is contained in:
Abizrh
2025-12-02 14:46:53 +07:00
parent a1a2a92ebd
commit ff4aefa593
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ onMounted(async () => {
})
async function getMyList() {
const url = `/api/v1/soapi?typeCode=${typeCode.value}&includes=encounter,employee&encounter-id=${route.params.id}`
const url = `/api/v1/soapi?type-code=${typeCode.value}&includes=encounter,employee&encounter-id=${route.params.id}`
const resp = await xfetch(url)
if (resp.success) {
data.value = (resp.body as Record<string, any>).data