Lista Amici

Richieste di Fiducia
Accettati
Rifiutati
This commit is contained in:
paoloar77
2022-01-07 01:16:46 +01:00
parent a1f2ced085
commit 3de9967571
16 changed files with 204 additions and 43 deletions

View File

@@ -24,7 +24,7 @@ export default defineComponent({
const $route = useRoute()
const { t } = useI18n()
const username = computed(() => $route.params.username.toString())
const username = computed(() => $route.params.username ? $route.params.username.toString() : userStore.my.username)
const filtroutente = ref(<any[]>[])
const showPic = ref(false)
@@ -35,6 +35,10 @@ export default defineComponent({
return userStore.my.profile
}
function myusername() {
return userStore.my.username
}
function loadProfile() {
// Carica il profilo di quest'utente
if (username.value) {
@@ -46,7 +50,7 @@ export default defineComponent({
}
}
watch(() => username, (to: any, from: any) => {
watch(() => username.value, (to: any, from: any) => {
loadProfile()
})
@@ -83,6 +87,7 @@ export default defineComponent({
getLinkUserTelegram,
filtroutente,
showPic,
myusername,
}
}
})