แก้ส่งtype

This commit is contained in:
setthawutttty 2025-03-26 17:22:52 +07:00
parent e808f11ab9
commit 28c44fa14e
4 changed files with 6 additions and 6 deletions

View file

@ -102,7 +102,7 @@ async function fetchInformation(id: string) {
.get(
config.API.orgProfileById(
id,
`${props.type == "employee" ? `-${props.type}` : ""}`
`${props.type.toLocaleLowerCase() == "employee" ? `-${props.type.toLocaleLowerCase()}` : ""}`
)
)
.then(async (res) => {
@ -146,7 +146,7 @@ async function fetchProfileGov(id: string) {
.get(
config.API.profileNewGovernmentCard(
id,
`${props.type == "employee" ? `-${props.type}` : ""}`
`${props.type.toLocaleLowerCase() == "employee" ? `-${props.type.toLocaleLowerCase()}` : ""}`
)
)
.then(async (res) => {
@ -222,7 +222,7 @@ async function fetchProfile(id: string, avatarName: string) {
<q-card style="width: 420px; overflow: visible">
<q-toolbar>
<q-toolbar-title class="text-subtitle1 text-bold"
>ทะเบยนประว
>ทะเบยนประว{{ props.type }}
</q-toolbar-title>
<q-btn
icon="close"

View file

@ -1803,7 +1803,7 @@ onMounted(async () => {
:modal="modalPersonal"
:id="personId"
@update:modal="updatemodalPersonal"
v-model:is-employee="isEmpType"
:type="isEmpType"
/>
</template>

View file

@ -2028,7 +2028,7 @@ onMounted(async () => {
:modal="modalPersonal"
:id="personId"
@update:modal="updatemodalPersonal"
v-model:is-employee="isEmpType"
:type="isEmpType"
/>
</template>

View file

@ -654,7 +654,7 @@ watch(
<PopupPersonal
:modal="modalPersonal"
:id="personId"
v-model:is-employee="isEmpType"
:type="isEmpType"
@update:modal="updatemodalPersonal"
/>