fix email add user
This commit is contained in:
parent
30043f4e33
commit
c99786a634
1 changed files with 5 additions and 3 deletions
|
|
@ -223,7 +223,10 @@ function onSubmit() {
|
|||
? config.API.managementUser + `/${userId.value}`
|
||||
: config.API.managementUser;
|
||||
|
||||
http[isStatusEdit.value ? "put" : "post"](url, formData)
|
||||
http[isStatusEdit.value ? "put" : "post"](url, {
|
||||
...formData,
|
||||
email: `${formData.email}@bangkok.go.th`,
|
||||
})
|
||||
.then(() => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
props.fetchlist?.();
|
||||
|
|
@ -513,8 +516,7 @@ watch(
|
|||
lazy-rules
|
||||
hide-bottom-space
|
||||
class="inputgreen"
|
||||
label="อีเมล"
|
||||
type="email"
|
||||
suffix="@bangkok.go.th"
|
||||
>
|
||||
</q-input>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue