fix: stay in the same position after renaming or deleting (#3039)

This commit is contained in:
niubility000
2024-03-07 18:14:40 +08:00
committed by GitHub
parent e167c3e1ef
commit cdf8def330
5 changed files with 14 additions and 8 deletions

View File

@@ -45,6 +45,7 @@ export default {
submit: async function () {
buttons.loading("delete");
window.sessionStorage.setItem("modified", "true");
try {
if (!this.isListing) {
await api.remove(this.$route.path);