This commit is contained in:
tamaina 2022-01-28 05:50:15 +09:00
parent 19af8e845f
commit 4a7f968741
3 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="vswabwbm" :style="{ zIndex, top: `${y - 64}px`, left: `${x - 64}px` }" :class="{ active }">
<div class="vswabwbm" :style="{ zIndex, top: `${y - 64}px`, left: `${x - 64}px` }">
<svg width="128" height="128" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg">
<circle fill="none" cx="64" cy="64">
<animate attributeName="r"

View File

@ -214,15 +214,15 @@ const fetchMoreAhead = async (): Promise<void> => {
...(props.pagination.offsetMode ? {
offset: offset.value,
} : {
sinceId: /*props.pagination.reversed ? items.value[0].id : */items.value[items.value.length - 1].id,
sinceId: items.value[items.value.length - 1].id,
}),
}).then(res => {
if (res.length > SECOND_FETCH_LIMIT) {
res.pop();
items.value = /*props.pagination.reversed ? [...res].reverse().concat(items.value) : */items.value.concat(res);
items.value = items.value.concat(res);
more.value = true;
} else {
items.value = /*props.pagination.reversed ? [...res].reverse().concat(items.value) : */items.value.concat(res) ;
items.value = items.value.concat(res) ;
more.value = false;
}
offset.value += res.length;
@ -307,7 +307,7 @@ onMounted(() => {
// more = true
setTimeout(() => {
moreFetching.value = false;
}, 3000);
}, 2000);
});
}
});

View File

@ -144,8 +144,8 @@ function onCompositionUpdate() {
}
function chooseFile(e: MouseEvent) {
selectFile(e.currentTarget || e.target, i18n.locale.selectFile).then(file => {
file = file;
selectFile(e.currentTarget || e.target, i18n.locale.selectFile).then(selectedFile => {
file = selectedFile;
});
}