generated from Flycro/laravel-nuxt
fix: Preview for local Files
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
20d03b385b
commit
ac371e4451
|
|
@ -145,6 +145,7 @@ async function onSubmit(event: FormSubmitEvent<any>) {
|
||||||
<UTextarea v-model="state.description" />
|
<UTextarea v-model="state.description" />
|
||||||
</UFormGroup>
|
</UFormGroup>
|
||||||
<img v-if="state.cover_image && typeof state.cover_image === 'string'" :src="$storage(state.cover_image)" alt="Cover" class="size-1/3 content-center rounded-lg">
|
<img v-if="state.cover_image && typeof state.cover_image === 'string'" :src="$storage(state.cover_image)" alt="Cover" class="size-1/3 content-center rounded-lg">
|
||||||
|
<img v-else-if="state.cover_image && state.cover_image instanceof File" :src="URL.createObjectURL(state.cover_image)" alt="Cover" class="size-1/3 content-center rounded-lg">
|
||||||
<UFormGroup label="Cover" name="cover_image">
|
<UFormGroup label="Cover" name="cover_image">
|
||||||
<UInput type="file" @change="handleCoverImageInput" />
|
<UInput type="file" @change="handleCoverImageInput" />
|
||||||
</UFormGroup>
|
</UFormGroup>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue