fix: load adjacent items in image preview
This commit is contained in:
parent
9e18a2958f
commit
03cad4fb0e
@ -301,10 +301,8 @@ watch(route, () => {
|
||||
// Specify hooks
|
||||
onMounted(async () => {
|
||||
window.addEventListener("keydown", key);
|
||||
if (fileStore.oldReq) {
|
||||
listing.value = fileStore.oldReq.items;
|
||||
updatePreview();
|
||||
}
|
||||
listing.value = fileStore.oldReq?.items ?? null;
|
||||
updatePreview();
|
||||
});
|
||||
|
||||
onBeforeUnmount(() => window.removeEventListener("keydown", key));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user