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">
|
||||
import { onMounted, ref, watch, reactive } from 'vue';
|
||||
import { onMounted, watch, reactive } from 'vue';
|
||||
import useAddressStore, {
|
||||
District,
|
||||
Province,
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ async function openDialog(action?: 'FORM' | 'INFO', idEdit?: string) {
|
|||
}
|
||||
|
||||
function undo() {
|
||||
if (!infoPersonId) return;
|
||||
if (!infoPersonId.value) return;
|
||||
infoPersonCardEdit.value = false;
|
||||
assignFormData(infoPersonId.value);
|
||||
}
|
||||
|
|
@ -233,7 +233,12 @@ function onClose() {
|
|||
}
|
||||
|
||||
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) {
|
||||
dialog({
|
||||
color: 'primary',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue