|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { computed, nextTick, onMounted, reactive, ref, watch } from 'vue'
|
|
|
|
|
import { computed, nextTick, onMounted,onUnmounted, reactive, ref, watch } from 'vue'
|
|
|
|
|
import Masonry from 'masonry-layout'
|
|
|
|
|
import { useInfiniteScroll } from '@vueuse/core'
|
|
|
|
|
import { debounce } from 'lodash-es'
|
|
|
|
@ -257,7 +257,9 @@ onMounted(() => {
|
|
|
|
|
show.value && addListeners()
|
|
|
|
|
window.addEventListener('keydown', handleKeydown)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
onUnmounted(()=>{
|
|
|
|
|
window.removeEventListener('keydown', handleKeydown)
|
|
|
|
|
})
|
|
|
|
|
// 键盘左右箭头快捷切换
|
|
|
|
|
function handleKeydown(event) {
|
|
|
|
|
// 在这里执行右箭头的逻辑
|
|
|
|
|