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