xuex刷新丢失 个人列表组件
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user