fix: service add image

This commit is contained in:
puriphatt 2024-06-18 02:28:29 +00:00
parent e45de539a2
commit 8013c553ea
3 changed files with 7 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -7,6 +7,7 @@ const statusToggle = defineModel('statusToggle');
defineProps<{ defineProps<{
isProduct?: boolean; isProduct?: boolean;
isService?: boolean;
}>(); }>();
defineEmits<{ defineEmits<{
@ -27,6 +28,11 @@ defineEmits<{
src="shop-add-image.png" src="shop-add-image.png"
style="object-fit: cover; width: 100%; height: 100%" style="object-fit: cover; width: 100%; height: 100%"
/> />
<q-img
v-else-if="isService"
src="service-add-image.png"
style="object-fit: cover; width: 100%; height: 100%"
/>
<q-icon <q-icon
v-else v-else
name="mdi-account full-height" name="mdi-account full-height"

View file

@ -1072,6 +1072,7 @@ watch(currentStatus, async () => {
> >
<template #prepend> <template #prepend>
<ProfileUpload <ProfileUpload
isService
v-model:url-profile="profileUrl" v-model:url-profile="profileUrl"
v-model:status-toggle="statusToggle" v-model:status-toggle="statusToggle"
v-model:profile-submit="profileSubmit" v-model:profile-submit="profileSubmit"