แก้ส่งtype
This commit is contained in:
parent
e808f11ab9
commit
28c44fa14e
4 changed files with 6 additions and 6 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue