meow
This commit is contained in:
parent
fb1a8f3a18
commit
1976c55a34
1 changed files with 6 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue