- aggiornamento catalogo: lista titoli del catalogo
- scheda prodotto libro - migliorata tabella prodotto
This commit is contained in:
@@ -2244,11 +2244,15 @@ export const tools = {
|
||||
},
|
||||
|
||||
strToObj(mystr: string): any {
|
||||
if (mystr) {
|
||||
mystr = decodeURIComponent(mystr)
|
||||
return JSON.parse(mystr)
|
||||
} else
|
||||
try {
|
||||
if (mystr) {
|
||||
mystr = decodeURIComponent(mystr)
|
||||
return JSON.parse(mystr)
|
||||
} else
|
||||
return null
|
||||
} catch (e) {
|
||||
return null
|
||||
}
|
||||
},
|
||||
|
||||
objToStr(myobj: any): string {
|
||||
@@ -9839,7 +9843,20 @@ export const tools = {
|
||||
const url = import.meta.env.VITE_APP_URL
|
||||
const protocol = url.startsWith('http://') ? 'http://' : url.startsWith('https://') ? 'https://' : ''
|
||||
return protocol
|
||||
}
|
||||
},
|
||||
|
||||
isRisoApp() {
|
||||
return this.appid() === tools.IDAPP_RISO
|
||||
},
|
||||
|
||||
isValueNotEmpty(value: any) {
|
||||
// Verifica se `value` è un oggetto non vuoto o un valore valido
|
||||
return (
|
||||
value !== null &&
|
||||
typeof value === "object" &&
|
||||
Object.keys(value).length > 0
|
||||
);
|
||||
},
|
||||
|
||||
// FINE !
|
||||
|
||||
|
||||
Reference in New Issue
Block a user