xuex刷新丢失 个人列表组件

This commit is contained in:
2023-07-28 15:31:32 +08:00
parent 385d8e34c5
commit 5648197acb
9 changed files with 98 additions and 18 deletions

View File

@@ -5,13 +5,13 @@
</template>
<script setup>
onMounted(() => {
window.addEventListener('scroll', handleScroll);
});
// onMounted(() => {
// window.addEventListener('scroll', handleScroll);
// });
onUnmounted(() => {
window.removeEventListener('scroll', handleScroll);
});
// onUnmounted(() => {
// window.removeEventListener('scroll', handleScroll);
// });
const handleScroll = () => {
if (Math.random() > 0.3) return