Compare commits

..

4 Commits

Author SHA1 Message Date
tamaina 9d0f1e2928 fix 2023-07-30 15:55:18 +00:00
tamaina 644e5a1c94 fix? 2023-07-30 15:07:26 +00:00
tamaina 965935278e Merge branch 'pag-back' into noman 2023-07-30 13:56:56 +00:00
tamaina f3da1bcbbd fix 2023-07-30 13:56:11 +00:00
3 changed files with 13 additions and 8 deletions

View File

@ -76,7 +76,10 @@ function onclick() {
}
// Plugin:register_note_view_interruptor 使watch
watch(() => props.image, () => {
watch(() => props.image, (newImage, oldImage) => {
// hide
// noteManager.set
if (JSON.stringify(newImage) === JSON.stringify(oldImage)) return;
hide = (defaultStore.state.nsfw === 'force' || defaultStore.state.enableDataSaverMode) ? true : (props.image.isSensitive && defaultStore.state.nsfw !== 'ignore');
}, {
deep: true,

View File

@ -431,7 +431,7 @@ onMounted(async () => {
conversation.value = res;
});
}
};
}
});
onUnmounted(() => {

View File

@ -568,13 +568,15 @@ async function executeQueue() {
unshiftItems(newItems);
queue.value = new Map();
} else {
const queueArr = Array.from(queue.value.entries());
queue.value = new Map(queueArr.slice(props.pagination.limit));
const newItems = Array.from({ length: Math.min(queueArr.length, props.pagination.limit) }, (_, i) => queueArr[i][1]).reverse();
isPausingUpdateByExecutingQueue.value = true;
if (queue.value.size > 0) {
const queueArr = Array.from(queue.value.entries());
queue.value = new Map(queueArr.slice(props.pagination.limit));
const newItems = Array.from({ length: Math.min(queueArr.length, props.pagination.limit) }, (_, i) => queueArr[i][1]).reverse();
isPausingUpdateByExecutingQueue.value = true;
await adjustScroll(() => unshiftItems(newItems, Infinity));
backed = true;
await adjustScroll(() => unshiftItems(newItems, Infinity));
backed = true;
}
denyMoveTransition.value = true;
items.value = new Map([...items.value].slice(0, displayLimit.value));