- fix scelta provincia (il bottone Avanti non veniva disabilitato).
- Se non scelgo la provincia, non deve farmi vedere la App...
This commit is contained in:
@@ -324,6 +324,13 @@ export default defineComponent({
|
||||
return ''
|
||||
}
|
||||
|
||||
function getrealdirectory() {
|
||||
if (props.directory == 'productinfos')
|
||||
return 'products'
|
||||
else
|
||||
return props.directory
|
||||
}
|
||||
|
||||
function getsrcimg(gallerylistery: any) {
|
||||
|
||||
if (!gallerylistery.imagefile) {
|
||||
@@ -332,15 +339,21 @@ export default defineComponent({
|
||||
if (gallerylistery) {
|
||||
if (tools.getextfile(gallerylistery.imagefile) === 'pdf')
|
||||
return 'images/images/pdf.jpg'
|
||||
else
|
||||
return costanti.DIR_UPLOAD + props.directory + '/' + gallerylistery.imagefile
|
||||
else {
|
||||
if (tools.contieneSlash(gallerylistery.imagefile)) {
|
||||
return gallerylistery.imagefile
|
||||
} else {
|
||||
return costanti.DIR_UPLOAD + getrealdirectory() + '/' + gallerylistery.imagefile
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
return 'images/noimg.png';
|
||||
}
|
||||
}
|
||||
|
||||
function getParamDir() {
|
||||
return tools.escapeslash(props.directory)
|
||||
return tools.escapeslash(getrealdirectory())
|
||||
}
|
||||
|
||||
function getUrl() {
|
||||
@@ -393,6 +406,7 @@ export default defineComponent({
|
||||
onRejected,
|
||||
isListImgValid,
|
||||
costanti,
|
||||
getrealdirectory,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user