Click sul Logo -> Va alla HOME

This commit is contained in:
Surya Paolo
2022-11-30 21:31:32 +01:00
parent f8b9209770
commit 9010c0ff37
3 changed files with 10 additions and 1 deletions

View File

@@ -516,6 +516,10 @@ export default defineComponent({
return null return null
} }
function toHome() {
$router.push('/')
}
function changecmd(value: any) { function changecmd(value: any) {
console.log('changecmd', value) console.log('changecmd', value)
@@ -584,6 +588,7 @@ export default defineComponent({
dark, dark,
iconConn, iconConn,
clIconConn, clIconConn,
toHome,
} }
}, },

View File

@@ -49,7 +49,7 @@
</q-btn> </q-btn>
<q-toolbar-title class="row items-center"> <q-toolbar-title class="row items-center">
<q-avatar> <q-avatar @click="toHome" class="imglink">
<img :src="imglogo()" height="27" alt="Immagine Logo" /> <img :src="imglogo()" height="27" alt="Immagine Logo" />
</q-avatar> </q-avatar>
<div class="q-mx-sm titlesite">{{ getappname() }}</div> <div class="q-mx-sm titlesite">{{ getappname() }}</div>

View File

@@ -995,6 +995,10 @@ h3 {
cursor: pointer; cursor: pointer;
} }
.imglink {
cursor: pointer;
}
.centeritems { .centeritems {
place-content: center; place-content: center;
} }