fix: remain in the same position of list after rename or delete2 Delete.vue
This commit is contained in:
parent
fe5ff35380
commit
b876b1a55a
@ -45,7 +45,7 @@ export default {
|
|||||||
submit: async function () {
|
submit: async function () {
|
||||||
buttons.loading("delete");
|
buttons.loading("delete");
|
||||||
|
|
||||||
window.sessionStorage.setItem('modified', "true");
|
window.sessionStorage.setItem("modified", "true");
|
||||||
try {
|
try {
|
||||||
if (!this.isListing) {
|
if (!this.isListing) {
|
||||||
await api.remove(this.$route.path);
|
await api.remove(this.$route.path);
|
||||||
@ -75,8 +75,8 @@ export default {
|
|||||||
this.$showError(e);
|
this.$showError(e);
|
||||||
if (this.isListing) this.$store.commit("setReload", true);
|
if (this.isListing) this.$store.commit("setReload", true);
|
||||||
}
|
}
|
||||||
Vue.nextTick(() => {
|
nextTick(() => {
|
||||||
window.sessionStorage.setItem('modified', "false");
|
window.sessionStorage.setItem("modified", "false");
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user