Il campo FOTO sembra non comparire correttamente. (dal profilo)

This commit is contained in:
paoloar77
2022-02-15 19:01:10 +01:00
parent c768e9de30
commit ec410c32d5
11 changed files with 37 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
import { defineComponent, ref, PropType, watch, onMounted } from 'vue'
import { defineComponent, ref, PropType, watch, onMounted, computed } from 'vue'
import { useI18n } from '@src/boot/i18n'
import { useUserStore } from '@store/UserStore'
import { useQuasar } from 'quasar'
@@ -65,6 +65,15 @@ export default defineComponent({
return (myobj && typeof myobj !== 'string' && typeof myobj !== 'undefined')
}
const isListImgValid = computed(() => {
const arr = getlistimages()
if (arr && tools.isArray(arr)) {
return arr.length > 0
} else {
return !!arr
}
})
watch(() => props.imgGall, (newval, oldval) => {
if (isValid(props.imgGall)) {
// @ts-ignore
@@ -379,6 +388,7 @@ export default defineComponent({
fullscreen,
fullscreensrc,
onRejected,
isListImgValid,
}
}
})