fix: remain in the same position of list after rename or delete Delete.vue
This commit is contained in:
parent
0174e9a847
commit
c51b7208f8
@ -45,6 +45,7 @@ export default {
|
|||||||
submit: async function () {
|
submit: async function () {
|
||||||
buttons.loading("delete");
|
buttons.loading("delete");
|
||||||
|
|
||||||
|
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);
|
||||||
@ -74,6 +75,9 @@ 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(() => {
|
||||||
|
window.sessionStorage.setItem('modified', "false");
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user