fix: ⚡ ref patrons
This commit is contained in:
parent
5f9b03f638
commit
aea03321ad
1 changed files with 3 additions and 3 deletions
|
@ -387,7 +387,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { defineAsyncComponent, onMounted, onUnmounted } from "vue";
|
import { ref, defineAsyncComponent, onMounted, onUnmounted } from "vue";
|
||||||
import calcAge from "s-age";
|
import calcAge from "s-age";
|
||||||
import cityTimezones from "city-timezones";
|
import cityTimezones from "city-timezones";
|
||||||
import XUserTimeline from "./index.timeline.vue";
|
import XUserTimeline from "./index.timeline.vue";
|
||||||
|
@ -422,6 +422,7 @@ let parallaxAnimationId = $ref<null | number>(null);
|
||||||
let narrow = $ref<null | boolean>(null);
|
let narrow = $ref<null | boolean>(null);
|
||||||
let rootEl = $ref<null | HTMLElement>(null);
|
let rootEl = $ref<null | HTMLElement>(null);
|
||||||
let bannerEl = $ref<null | HTMLElement>(null);
|
let bannerEl = $ref<null | HTMLElement>(null);
|
||||||
|
let patrons = ref([]);
|
||||||
|
|
||||||
const age = $computed(() => {
|
const age = $computed(() => {
|
||||||
return calcAge(props.user.birthday);
|
return calcAge(props.user.birthday);
|
||||||
|
@ -467,9 +468,8 @@ const timeForThem = $computed(() => {
|
||||||
return "";
|
return "";
|
||||||
});
|
});
|
||||||
|
|
||||||
let patrons = [];
|
|
||||||
const patronsResp = await os.api("patrons");
|
const patronsResp = await os.api("patrons");
|
||||||
patrons = patronsResp.patrons;
|
patrons.value = patronsResp.patrons;
|
||||||
|
|
||||||
function parallaxLoop() {
|
function parallaxLoop() {
|
||||||
parallaxAnimationId = window.requestAnimationFrame(parallaxLoop);
|
parallaxAnimationId = window.requestAnimationFrame(parallaxLoop);
|
||||||
|
|
Loading…
Reference in a new issue