fix: remain in the same position of list after rename or delete Rename.vue
This commit is contained in:
parent
88b463c665
commit
0174e9a847
@ -87,7 +87,8 @@ export default {
|
||||
|
||||
newLink =
|
||||
url.removeLastDir(oldLink) + "/" + encodeURIComponent(this.name);
|
||||
|
||||
|
||||
window.sessionStorage.setItem('modified', "true");
|
||||
try {
|
||||
await api.move([{ from: oldLink, to: newLink }]);
|
||||
if (!this.isListing) {
|
||||
@ -100,6 +101,9 @@ export default {
|
||||
this.$showError(e);
|
||||
}
|
||||
|
||||
Vue.nextTick(() => {
|
||||
window.sessionStorage.setItem('modified', "false");
|
||||
});
|
||||
this.$store.commit("closeHovers");
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user