diff --git a/pages/bands.vue b/pages/bands.vue index 52a71c7..c1ad341 100644 --- a/pages/bands.vue +++ b/pages/bands.vue @@ -6,12 +6,18 @@ const { data: bands } = (await useApiFetch>("/band/all")) as unknown as { data: Ref }; - const { data: rd }: { data: any } = useAuth(); + const { + data: { value: rd }, + getSession, + } = useAuth(); + await getSession({ force: true }); + let inc = ref(1); + const data = ref(rd); const refresh = async () => { await useAuth().getSession({ force: true }); - rd.value = useAuth().data.value; + data.value = useAuth().data.value; + //inc.value += 1; }; - const hider = subscriptions; if (bands.value == null) bands.value = []; useHead({ @@ -21,7 +27,7 @@