fix: freeze the list

This commit is contained in:
niubility000 2024-02-16 09:10:11 +08:00 committed by GitHub
parent dc19b2ff7f
commit 30c3e8a782
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -383,6 +383,7 @@ export default {
}, },
watch: { watch: {
req: function () { req: function () {
if (window.sessionStorage.getItem('listFrozen') !=="true"){
// Reset the show value // Reset the show value
this.showLimit = 50; this.showLimit = 50;
@ -394,6 +395,10 @@ export default {
// Fill and fit the window with listing items // Fill and fit the window with listing items
this.fillWindow(true); this.fillWindow(true);
}); });
}
if (this.req.isDir) {
window.sessionStorage.setItem('listFrozen', "false");
}
}, },
}, },
mounted: function () { mounted: function () {