feat: fallback user image
This commit is contained in:
parent
293b109e7c
commit
628c3d2bf8
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, onMounted, watch, computed } from 'vue';
|
||||
import useUtilsStore, { dialog } from 'stores/utils';
|
||||
import useUtilsStore, { baseUrl, dialog } from 'stores/utils';
|
||||
import { calculateAge } from 'src/utils/datetime';
|
||||
import { useQuasar, type QTableProps } from 'quasar';
|
||||
import { storeToRefs } from 'pinia';
|
||||
|
|
@ -1888,6 +1888,7 @@ watch(
|
|||
v-model:dialogState="imageDialog"
|
||||
v-model:file="profileFileImg"
|
||||
v-model:image-url="urlProfile"
|
||||
:default-url="`${baseUrl}/user/${currentUser?.id}/image`"
|
||||
:hiddenFooter="!isImageEdit"
|
||||
clearButton
|
||||
@save="handleImageUpload"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue