- Fare LISTA MOVIMENTI più comprensibile
- Grafica Circuiti
This commit is contained in:
@@ -7,7 +7,7 @@ import { tools } from '@store/Modules/tools'
|
||||
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
import { useI18n } from '@src/boot/i18n'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
import { static_data } from '@/db/static_data'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
@@ -23,6 +23,7 @@ export default defineComponent({
|
||||
const $q = useQuasar()
|
||||
const { t } = useI18n()
|
||||
const $router = useRouter()
|
||||
const $route = useRoute()
|
||||
|
||||
const userStore = useUserStore()
|
||||
const globalStore = useGlobalStore()
|
||||
@@ -32,10 +33,16 @@ export default defineComponent({
|
||||
|
||||
const { getMyUsername, Username, getMyImg } = MixinUsers()
|
||||
|
||||
const currentPath = computed(() => $route.path); // Uso di computed per la reattività
|
||||
|
||||
function mounted() {
|
||||
// mounted
|
||||
}
|
||||
|
||||
function naviga(path: string) {
|
||||
$router.push(path)
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
@@ -47,6 +54,8 @@ export default defineComponent({
|
||||
tools,
|
||||
site,
|
||||
getMyImg,
|
||||
naviga,
|
||||
currentPath,
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user