fix: Can't change the original picture.
This commit is contained in:
parent
377a82b9dd
commit
9bcae00cb5
2 changed files with 6 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ withDefaults(
|
|||
|
||||
defineEmits<{
|
||||
(e: 'inputFile'): void;
|
||||
(e: 'cancelFile'): void;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
|
|
@ -64,7 +65,7 @@ defineEmits<{
|
|||
padding="8px"
|
||||
class="cancel-img-btn full-width"
|
||||
:label="$t('cancel')"
|
||||
@click="urlProfile = ''"
|
||||
@click="(urlProfile = ''), $emit('cancelFile')"
|
||||
/>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
|
|
|
|||
|
|
@ -3413,6 +3413,7 @@ watch(
|
|||
v-model:status-toggle="statusToggle"
|
||||
v-model:profile-submit="profileSubmit"
|
||||
@input-file="inputFile.click()"
|
||||
@cancel-file="inputFile.value = ''"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
|
@ -3478,6 +3479,7 @@ watch(
|
|||
v-model:status-toggle="statusToggle"
|
||||
v-model:profile-submit="profileSubmit"
|
||||
@input-file="inputFile.click()"
|
||||
@cancel-file="inputFile.value = ''"
|
||||
:label-status-toggle="'formDialogTitleProductStatus'"
|
||||
/>
|
||||
</template>
|
||||
|
|
@ -3535,6 +3537,7 @@ watch(
|
|||
v-model:url-profile="profileUrl"
|
||||
v-model:status-toggle="statusToggle"
|
||||
v-model:profile-submit="profileSubmit"
|
||||
@cancel-file="inputFile.value = ''"
|
||||
@input-file="inputFile.click()"
|
||||
/>
|
||||
</template>
|
||||
|
|
@ -3696,6 +3699,7 @@ watch(
|
|||
v-model:url-profile="profileUrl"
|
||||
v-model:status-toggle="statusToggle"
|
||||
v-model:profile-submit="profileSubmit"
|
||||
@cancel-file="inputFile.value = ''"
|
||||
@input-file="inputFile.click()"
|
||||
/>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue