fix: remain in the same position of list after rename or delete Update4 Listing.vue
This commit is contained in:
parent
7ef0bb0e1d
commit
a136c0b5d6
@ -383,7 +383,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
req: function () {
|
req: function () {
|
||||||
if (window.sessionStorage.getItem('listFrozen') !=="true"){
|
if (window.sessionStorage.getItem("listFrozen") !=="true" && window.sessionStorage.getItem("modified") !=="true"){
|
||||||
// Reset the show value
|
// Reset the show value
|
||||||
this.showLimit = 50;
|
this.showLimit = 50;
|
||||||
|
|
||||||
@ -397,7 +397,8 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this.req.isDir) {
|
if (this.req.isDir) {
|
||||||
window.sessionStorage.setItem('listFrozen', "false");
|
window.sessionStorage.setItem(”listFrozen“, "false");
|
||||||
|
window.sessionStorage.setItem("modified", "false");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user