消除抖动,修改链接
This commit is contained in:
@@ -122,6 +122,7 @@ export default {
|
||||
let showType = ref("gallery") // gallery video
|
||||
let sortType = ref("shortName") // shortName name createTime
|
||||
let targetPage = ref(1)
|
||||
let debounceTimer = 0
|
||||
|
||||
let loadComplete = computed(() => {
|
||||
return store.state.loadComplete
|
||||
@@ -252,7 +253,10 @@ export default {
|
||||
|
||||
function showThumbnail(gallery){
|
||||
if(gallery.download !== undefined)
|
||||
store.commit("_changeThumbnailGallery", gallery)
|
||||
clearTimeout(debounceTimer)
|
||||
debounceTimer = setTimeout(() => {
|
||||
store.commit("_changeThumbnailGallery", gallery)
|
||||
}, 500)
|
||||
}
|
||||
|
||||
return {galleryTasks, videoTasks, min, max, targetPage, loadComplete, page, isEditing, inputNode, isShowVideoHistory,
|
||||
|
||||
Reference in New Issue
Block a user