new version Visualizzazione Service
This commit is contained in:
@@ -34,9 +34,9 @@ export default defineComponent({
|
||||
default: null,
|
||||
},
|
||||
idRec: {
|
||||
type: Number,
|
||||
type: String,
|
||||
required: false,
|
||||
default: 0
|
||||
default: ''
|
||||
},
|
||||
nopopup: {
|
||||
type: Boolean,
|
||||
@@ -66,7 +66,7 @@ export default defineComponent({
|
||||
|
||||
function load() {
|
||||
// Carica il profilo di quest'utente
|
||||
if (props.idRec > 0) {
|
||||
if (props.idRec) {
|
||||
userStore.loadGeneric(props.table, props.idRec, idnotif.value).then((ris) => {
|
||||
myrec.value = ris
|
||||
notifStore.setAsRead(idnotif.value)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
|
||||
<q-card class="dialog_card q-mb-lg" v-if="myrec._id">
|
||||
<q-card class="dialog_card q-mb-lg" v-if="myrec && myrec._id">
|
||||
|
||||
<q-footer
|
||||
v-if="!nopopup"
|
||||
|
||||
Reference in New Issue
Block a user