fix: remain in the same position of list after rename or delete Update4 Files.vue
This commit is contained in:
parent
a136c0b5d6
commit
6352e12c8e
@ -72,11 +72,11 @@ export default {
|
|||||||
$route: function (to, from) {
|
$route: function (to, from) {
|
||||||
if (from.path.endsWith("/")) {
|
if (from.path.endsWith("/")) {
|
||||||
if (to.path.endsWith("/")) {
|
if (to.path.endsWith("/")) {
|
||||||
window.sessionStorage.setItem('listFrozen', "false");
|
window.sessionStorage.setItem("listFrozen", "false");
|
||||||
this.fetchData();
|
this.fetchData();
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
window.sessionStorage.setItem('listFrozen', "true");
|
window.sessionStorage.setItem("listFrozen", "true");
|
||||||
this.fetchData();
|
this.fetchData();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -117,7 +117,7 @@ export default {
|
|||||||
this.$store.commit("closeHovers");
|
this.$store.commit("closeHovers");
|
||||||
|
|
||||||
// Set loading to true and reset the error.
|
// Set loading to true and reset the error.
|
||||||
if (window.sessionStorage.getItem('listFrozen') !=="true" && window.sessionStorage.getItem('modified') !=="true"){
|
if (window.sessionStorage.getItem("listFrozen") !=="true" && window.sessionStorage.getItem("modified") !=="true"){
|
||||||
this.setLoading(true);
|
this.setLoading(true);
|
||||||
}
|
}
|
||||||
this.error = null;
|
this.error = null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user