This commit is contained in:
cutestnekoaqua 2023-01-19 17:58:53 +01:00
parent d961c3d61d
commit 03234acb8f
No known key found for this signature in database
GPG key ID: 6BF0964A5069C1E0

View file

@ -41,7 +41,7 @@
</template>
<script lang="ts" setup>
import { markRaw, onMounted, onUnmounted, watch, computed, onActivated } from 'vue';
import { markRaw, onMounted, onUnmounted, watch, computed, onActivated, onDeactivated } from 'vue';
import * as Acct from 'calckey-js/built/acct';
import { Virtual } from 'swiper';
import { Swiper, SwiperSlide } from 'swiper/vue';
@ -217,12 +217,15 @@ onUnmounted(() => {
let alreadyInit = $ref(false);
onActivated(() => {
if (!alreadyInit.value) alreadyInit.value = true;
else {
if (alreadyInit.value) {
paginationComponentUser.reload();
paginationComponentGroup.reload();
}
});
onDeactivated(() => {
alreadyInit.value = true;
});
</script>
<style lang="scss" scoped>