fix: default url not show
This commit is contained in:
parent
4d14dd22c3
commit
a7683c2640
2 changed files with 8 additions and 3 deletions
|
|
@ -77,8 +77,8 @@ function change(e: Event) {
|
|||
</div>
|
||||
<div class="image-dialog-body">
|
||||
<img
|
||||
:src="imageUrl || fallbackUrl"
|
||||
v-if="imageUrl || fallbackUrl"
|
||||
:src="imageUrl || defaultUrl || fallbackUrl"
|
||||
v-if="imageUrl || defaultUrl || fallbackUrl"
|
||||
class="image-container"
|
||||
style="object-fit: contain"
|
||||
@error="imageUrl = ''"
|
||||
|
|
@ -127,7 +127,11 @@ function change(e: Event) {
|
|||
:color="$q.dark.isActive ? 'grey-9' : 'grey-4'"
|
||||
:text-color="$q.dark.isActive ? 'grey-1' : 'grey-10'"
|
||||
:label="$t('cancel')"
|
||||
@click="inputFile && (inputFile.value = ''), (file = null)"
|
||||
@click="
|
||||
inputFile && (inputFile.value = ''),
|
||||
(imageUrl = defaultUrl || fallbackUrl || ''),
|
||||
(file = null)
|
||||
"
|
||||
class="q-px-md q-mr-sm"
|
||||
v-close-popup
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -2498,6 +2498,7 @@ const emptyCreateDialog = ref(false);
|
|||
v-model:dialog-state="customerFormState.imageDialog"
|
||||
v-model:file="customerFormData.image"
|
||||
v-model:image-url="customerFormState.customerImageUrl"
|
||||
:default-url="customerFormState.defaultCustomerImageUrl"
|
||||
clear-button
|
||||
@save="
|
||||
async (v) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue