Merge branch 'dev/phat-2' into develop
This commit is contained in:
commit
cec7db9388
2 changed files with 8 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref, watch, reactive } from 'vue';
|
import { onMounted, watch, reactive } from 'vue';
|
||||||
import useAddressStore, {
|
import useAddressStore, {
|
||||||
District,
|
District,
|
||||||
Province,
|
Province,
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@ async function openDialog(action?: 'FORM' | 'INFO', idEdit?: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function undo() {
|
function undo() {
|
||||||
if (!infoPersonId) return;
|
if (!infoPersonId.value) return;
|
||||||
infoPersonCardEdit.value = false;
|
infoPersonCardEdit.value = false;
|
||||||
assignFormData(infoPersonId.value);
|
assignFormData(infoPersonId.value);
|
||||||
}
|
}
|
||||||
|
|
@ -233,7 +233,12 @@ function onClose() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onSubmit() {
|
async function onSubmit() {
|
||||||
formData.value.profileImage = profileFile.value as File;
|
if (profileSubmit.value) {
|
||||||
|
formData.value.profileImage = profileFile.value as File;
|
||||||
|
} else {
|
||||||
|
formData.value.profileImage = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (isEdit.value === true && userId.value) {
|
if (isEdit.value === true && userId.value) {
|
||||||
dialog({
|
dialog({
|
||||||
color: 'primary',
|
color: 'primary',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue